/* RETAIN-PH tap kiosk — fullscreen, readable from a distance */
body.kiosk { margin: 0; min-height: 100vh; background: radial-gradient(1100px 600px at 80% -10%, rgba(var(--gold-rgb),  .16), transparent 60%), linear-gradient(160deg, var(--brand-700), var(--deep) 60%, var(--deep-2)); color: var(--brand-50); display: flex; flex-direction: column; overflow: hidden; user-select: none; }
.k-top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.k-brand { display: flex; align-items: center; gap: 10px; }
.k-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.k-brand b { display: block; font-size: 18px; letter-spacing: .02em; }
.k-brand small { display: block; font-size: 12px; color: var(--on-deep); }
.k-loc { margin: 0 auto; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 20px; color: var(--gold); text-align: center; }
.k-right { display: flex; gap: 14px; align-items: center; }
.k-net { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--brand-100); }
.k-net i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.k-net.off i { background: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .3); }
.k-net.off { color: #fed7aa; }
.k-lang { color: var(--gold-soft); font-size: 13px; border: 1px solid rgba(254, 238, 140, .4); padding: 4px 10px; border-radius: 999px; }

.k-main { flex: 1; display: grid; grid-template-columns: 1fr 320px; gap: 0; min-height: 0; }
@media (max-width: 900px) { .k-main { grid-template-columns: 1fr; } .k-side { display: none; } }
.k-stage { display: grid; place-items: center; padding: 24px; text-align: center; position: relative; }
.k-idle h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 18px 0 6px; color: #fff; }
.k-idle p { font-size: 1.2rem; color: var(--on-deep); margin: 0; }
.k-clock { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.k-date { color: var(--on-deep); font-size: 1.1rem; margin-top: 6px; }
.k-wave { position: relative; width: 150px; height: 150px; margin: 30px auto 0; display: grid; place-items: center; color: var(--gold); }
.k-wave span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(var(--gold-rgb),  .55); animation: wave 2.4s infinite ease-out; }
.k-wave span:nth-child(2) { animation-delay: .8s; } .k-wave span:nth-child(3) { animation-delay: 1.6s; }
@keyframes wave { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.k-classes { margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.k-classes span { background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; font-size: 14px; }

.k-result { width: min(640px, 92vw); padding: 36px 28px 30px; border-radius: 28px; background: #fff; color: #0f172a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: pop .25s ease-out; border-top: 12px solid var(--brand); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.k-result.out { border-top-color: #64748b; }
.k-result.late, .k-result.waiting { border-top-color: #f58c0b; }
.k-result.staff { border-top-color: var(--gold); }
.k-result.error { border-top-color: #dc2626; }
.k-result.dup { border-top-color: #94a3b8; }
.k-avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 40px; font-weight: 800; background: var(--brand-100); color: var(--brand-700); background-size: cover; background-position: center; }
.k-result.error .k-avatar { background: #fee2e2; color: #b91c1c; }
.k-msg { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand); line-height: 1.1; }
.k-result.out .k-msg { color: #475569; }
.k-result.late .k-msg, .k-result.waiting .k-msg { color: #c26a00; }
.k-result.error .k-msg { color: #b91c1c; }
.k-result.staff .k-msg { color: var(--gold-ink); }
.k-name { font-size: 1.6rem; font-weight: 700; margin-top: 10px; }
.k-sub { color: #64748b; font-size: 1.05rem; }
.k-detail { margin-top: 14px; font-size: 1.1rem; color: #1e293b; background: #f4f7f4; border-radius: 12px; padding: 10px 14px; }
.k-detail:empty { display: none; }
.k-time { margin-top: 12px; color: #64748b; font-size: .95rem; }

.k-side { border-left: 1px solid rgba(255, 255, 255, .08); padding: 18px; overflow-y: auto; background: rgba(0, 0, 0, .12); }
.k-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-deep); margin: 18px 0 8px; }
.k-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.k-stats div { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px; text-align: center; }
.k-stats b { display: block; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.k-stats span { font-size: 11px; color: var(--on-deep); }
.k-recent { list-style: none; padding: 0; margin: 0; }
.k-recent li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.k-recent li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.k-recent li small { color: var(--on-deep); }
.k-recent .tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(var(--brand-rgb),  .4); color: #d1fae5; }
.k-recent .tag.out { background: rgba(148, 163, 184, .25); color: #e2e8f0; }
.k-recent .tag.bad { background: rgba(220, 38, 38, .35); color: #fecaca; }
.k-recent .tag.wait { background: rgba(245, 140, 11, .35); color: #fed7aa; }

.k-capture { position: fixed; left: -9999px; top: 0; opacity: 0; }
.k-demo-btn { position: fixed; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; background: var(--gold); color: var(--deep); border: 0; font: 700 14px var(--font); padding: 10px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.k-demo { position: fixed; left: 16px; bottom: 70px; width: min(440px, calc(100vw - 32px)); max-height: 62vh; display: flex; flex-direction: column; background: #fff; color: #0f172a; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); overflow: hidden; }
.k-demo-head { padding: 14px 16px 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.k-demo-head span { grid-column: 1; font-size: 12.5px; color: #64748b; }
.k-demo-head button { grid-row: 1 / 3; grid-column: 2; border: 0; background: #f1f5f9; border-radius: 8px; width: 32px; height: 32px; font-size: 20px; cursor: pointer; }
.k-demo input { margin: 0 16px 8px; width: auto; }
.k-demo-list { overflow-y: auto; padding: 0 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.k-demo-list button { text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: 13px var(--font); }
.k-demo-list button:hover { border-color: var(--brand); background: var(--brand-50); }
.k-demo-list button.staff { border-color: #f3e08a; background: #fffbe0; }
.k-demo-list b { display: block; font-size: 13px; }
.k-demo-list span { color: #64748b; font-size: 11.5px; }
