/* Rift Check-in kiosk — a full-screen tablet by the door. Dark, huge type, one accent (the client's). */
:root { --bg: #101014; --panel: #1a1a21; --panel-2: #23232c; --line: rgba(255,255,255,.1); --ink: #fff; --muted: #a8a8b8; --good: #22c55e; --bad: #ef4444; --warn: #f59e0b; --accent: #6f42c1; --accent-ink: #fff;
  --sans: Archivo, ui-sans-serif, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --ease: cubic-bezier(.2,.8,.2,1); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 18px/1.4 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.kiosk { height: 100dvh; display: flex; flex-direction: column; background-image: radial-gradient(circle at 20% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.top { display: flex; align-items: center; gap: 14px; padding: 22px 32px; }
.top img { height: 44px; background: #fff; padding: 3px; }
.top .mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 1.4rem; }
.top b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.top .loc { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top .clock { margin-left: auto; font-family: var(--mono); font-size: 1.3rem; font-weight: 500; }
.stage { flex: 1; display: grid; place-items: center; padding: 10px 24px 28px; min-height: 0; overflow-y: auto; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; width: min(1100px, 100%); }
.hello h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 900; margin: 0 0 18px; }
.hello h1 em { font-style: normal; color: var(--accent); }
.hello p { color: var(--muted); font-size: 1.15rem; max-width: 34ch; margin: 0 0 30px; }
.side-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn { min-height: 58px; padding: 0 24px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.pill-btn:active { background: var(--panel-2); }
.pill-btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill-btn.on { background: #fff; color: #101014; }
.pill-btn svg { width: 22px; height: 22px; }
.mode { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); margin-bottom: 14px; min-height: 1.2em; }
.pad-wrap { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.code { height: 76px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 2.4rem; font-weight: 600; letter-spacing: .28em; background: #0b0b0f; border: 1px solid var(--line); margin-bottom: 14px; }
.code .ph { color: #4b4b5a; letter-spacing: .12em; font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
.code.shake { animation: shake .35s; border-color: var(--bad); }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { height: 76px; font-family: var(--mono); font-size: 1.9rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); }
.keys button:active { background: #33333f; transform: scale(.98); }
.keys .fn { font-size: .85rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.keys .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 1rem; font-family: var(--sans); font-weight: 800; letter-spacing: .08em; }
.err { color: #fca5a5; min-height: 26px; margin-top: 12px; font-size: 1rem; text-align: center; }

/* result screens */
.result { text-align: center; width: min(760px, 100%); animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.avatar { width: 180px; height: 180px; margin: 0 auto 26px; display: grid; place-items: center; font-size: 4.2rem; font-weight: 900; background: var(--panel-2); border: 6px solid var(--good); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.result.denied .avatar { border-color: var(--bad); }
.result.repeat .avatar { border-color: var(--accent); }
.result h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.045em; line-height: 1; margin: 0 0 16px; font-weight: 900; }
.result .line { font-family: var(--mono); font-size: 1.1rem; color: var(--muted); letter-spacing: .04em; }
.result .cls { display: inline-block; margin-top: 18px; padding: 10px 18px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid var(--accent); font-weight: 700; }
.result .why { display: inline-block; margin-top: 12px; padding: 14px 22px; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.5); color: #fecaca; font-size: 1.25rem; font-weight: 600; }
.result .desk { color: var(--muted); margin-top: 18px; }
.result .newcode { margin: 22px auto 0; padding: 18px 24px; border: 2px dashed var(--accent); display: inline-block; }
.result .newcode b { display: block; font-family: var(--mono); font-size: 2.6rem; letter-spacing: .2em; }
.result .actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.timer { height: 4px; background: var(--line); margin: 34px auto 0; width: 240px; overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--accent); animation: drain linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }
.tick { width: 70px; height: 70px; color: var(--good); }

/* forms: sign-up + waiver */
.sheet { width: min(860px, 100%); background: var(--panel); border: 1px solid var(--line); padding: 30px; animation: rise .3s var(--ease); }
.sheet h2 { margin: 0 0 6px; font-size: 2rem; letter-spacing: -.03em; font-weight: 900; }
.sheet .sub { color: var(--muted); margin: 0 0 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f input { width: 100%; height: 58px; padding: 0 16px; background: #0b0b0f; border: 1px solid var(--line); font-size: 1.15rem; user-select: text; -webkit-user-select: text; }
.f input:focus { outline: none; border-color: var(--accent); }
.waiver-text { max-height: 30vh; overflow-y: auto; background: #0b0b0f; border: 1px solid var(--line); padding: 16px 18px; color: #d4d4de; font-size: 1rem; line-height: 1.55; white-space: pre-line; margin-bottom: 14px; }
.sig { position: relative; background: #fff; height: 190px; touch-action: none; }
.sig canvas { width: 100%; height: 100%; display: block; }
.sig span { position: absolute; left: 18px; bottom: 14px; color: #9ca3af; font-size: .9rem; pointer-events: none; }
.sig::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 40px; border-bottom: 1px solid #d1d5db; pointer-events: none; }
.sheet .row-btns { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.camera { position: relative; width: min(560px, 100%); aspect-ratio: 4 / 3; background: #000; border: 1px solid var(--line); overflow: hidden; }
.camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera .frame { position: absolute; inset: 18% 24%; border: 3px solid var(--accent); box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.center { text-align: center; }
.center .row-btns { justify-content: center; }
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; gap: 26px; }
  .hello { text-align: center; } .hello p { margin: 0 auto 18px; } .side-btns { justify-content: center; }
  .grid2 { grid-template-columns: 1fr; }
  .top { padding: 16px 18px; } .top .clock { font-size: 1rem; }
  .keys button { height: 64px; }
  .avatar { width: 130px; height: 130px; font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.staff-link { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #6b6b7b; text-decoration: none; }
.staff-link:hover { color: var(--ink); }
