:root { --bg:#14161a; --panel:#1c1f26; --fg:#f2f2f2; --dim:#8a8f98; --acc:#ffd400; --go:#36c26a; --bad:#ff6b5b; --blue:#2d6cdf; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }          /* #lock is display:flex - hidden must still win */
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.4 "Segoe UI",system-ui,sans-serif; }
h1 { color:var(--acc); margin:.3em 0; }
h2 { font-size:17px; margin:0 0 8px; }
small { font-weight:400; }
.dim { color:var(--dim); }
.bad { color:var(--bad); }
button, select, input { font:inherit; }
button { background:#2a2f3a; color:var(--fg); border:1px solid #3a4050; border-radius:8px; padding:7px 12px; cursor:pointer; }
button:hover { border-color:var(--acc); }
button.acc { background:var(--acc); color:#111; border-color:var(--acc); font-weight:700; }
button.small { padding:2px 8px; font-size:12px; }
select, input[type=number], input:not([type]), input[type=password], input[type=text] {
  background:#0f1115; color:var(--fg); border:1px solid #3a4050; border-radius:8px; padding:6px 8px; }
input.num { width:72px; }
.row { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin:6px 0; }

#lock { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:16px; }
#lock .logo { width:84px; height:84px; }
.tokrow { display:flex; gap:0; align-items:stretch; }
.tokrow input { width:220px; text-align:center; font-size:20px; border-radius:8px 0 0 8px; border-right:0; }
.tokrow .eye { border-radius:0 8px 8px 0; margin-right:8px; background:#0f1115; color:#777; font-size:18px; }
.tokrow .eye.on { color:var(--blue); }

main { max-width:980px; margin:0 auto; padding:10px 16px 40px; }
header { display:flex; align-items:center; gap:10px; font-size:22px; font-weight:700; color:var(--acc); margin:6px 0 10px; }
header img { width:34px; height:34px; }
section { background:var(--panel); border-radius:12px; padding:12px 14px; margin:10px 0; }

#stage { position:relative; background:#000; border-radius:12px; overflow:hidden; margin:10px 0 4px; min-height:120px; }
#stage video { display:block; width:100%; height:auto; }
#stage canvas { position:absolute; left:0; top:0; width:100%; height:100%; }
#stage.tapping canvas { cursor:crosshair; }
#stillTag { position:absolute; right:10px; bottom:10px; background:#d93025; color:#fff; padding:4px 10px;
  border-radius:6px; font-weight:700; font-size:13px; pointer-events:none; }
#countOv { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:min(30vw, 220px); font-weight:900; color:var(--acc); text-shadow:0 0 24px #000, 0 0 6px #000;
  pointer-events:none; }
#countOv.go { color:var(--go); }
#countOv.rec { font-size:min(8vw, 56px); align-items:flex-start; padding-top:12px; color:#ff3b30; }
#tapHint { position:absolute; left:50%; top:10px; transform:translateX(-50%); background:#000c; color:var(--acc);
  padding:6px 12px; border-radius:8px; font-weight:700; pointer-events:none; }

.big { width:100%; font-size:26px; font-weight:800; padding:14px; margin:8px 0; border:0; }
.big.go { background:var(--go); color:#fff; }
.big.stop { background:var(--bad); color:#fff; }
.big:disabled { opacity:.5; }
#big { font-size:44px; font-weight:800; text-align:center; color:var(--acc); }
#rp { width:100%; background:#000; border-radius:8px; display:block; }
#rpSlider { flex:1; min-width:120px; }

table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:5px 6px; border-bottom:1px solid #2a2f3a; }
td.num { text-align:right; font-variant-numeric:tabular-nums; }
