:root{--bg:#05060a;--panel:#12141c;--panel-2:#1b1e2a;--text:#eef0f8;--muted:#9aa0b8;--accent:#ff7a2f;--accent-2:#ffd24d;--danger:#ff4d5e;--ok:#4fd68a;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;margin:0;font-family:system-ui,-apple-system,PingFang TC,Noto Sans TC,Microsoft JhengHei,sans-serif;overflow:hidden}[hidden]{display:none!important}button{font:inherit;color:var(--text);background:var(--panel-2);cursor:pointer;touch-action:manipulation;border:1px solid #2c3142;border-radius:12px;padding:12px 14px}button:disabled{opacity:.45;cursor:default}button.primary{background:linear-gradient(135deg, var(--accent), #ff3d5a);border:none;padding:14px 48px;font-size:20px;font-weight:800;box-shadow:0 6px 24px #ff5a3259}button.ghost{color:var(--muted);background:0 0}button.small{padding:6px 12px;font-size:13px}button.icon{background:0 0;border:none;padding:6px 10px;font-size:18px}.screen{padding:calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px);text-align:center;background:radial-gradient(ellipse at 50% 30%, #2a1622 0%, var(--bg) 65%);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex;position:fixed;inset:0;overflow-y:auto}.title{letter-spacing:.08em;background:linear-gradient(180deg, #fff 10%, var(--accent-2) 55%, var(--accent));color:#0000;filter:drop-shadow(0 4px 18px #ff782873);-webkit-background-clip:text;background-clip:text;margin:0;font-size:clamp(48px,14vw,88px);font-weight:900}.subtitle{color:var(--muted);margin:-6px 0 6px}.notes{text-align:left;color:#cfd3e6;gap:8px;max-width:420px;margin:0 0 6px;padding:0;font-size:15px;list-style:none;display:grid}.notes li:before{content:"✦ ";color:var(--accent-2)}.progress{background:#22263a;border-radius:3px;width:min(320px,80vw);height:6px;overflow:hidden}#loadBar{background:linear-gradient(90deg, var(--accent-2), var(--accent));width:0%;height:100%;transition:width .2s}.load-text{min-height:1.4em;color:var(--muted);margin:0;font-size:13px}.hint{max-width:420px;color:var(--accent-2)}.stack{flex-direction:column;gap:10px;width:min(320px,86vw);display:flex}.stack a{background:var(--accent);color:#fff;border-radius:12px;padding:12px;font-weight:700;text-decoration:none;display:block}#app{position:fixed;inset:0}#stage{position:absolute;inset:0}#stage canvas{width:100%;height:100%;display:block}#hud,#handsInfo{top:calc(var(--safe-top) + 8px);white-space:pre;pointer-events:none;background:#00000080;border-radius:8px;margin:0;padding:6px 8px;font:11px/1.45 ui-monospace,SF Mono,Menlo,Consolas,monospace;position:absolute}#hud{left:8px}#handsInfo{text-align:right;right:8px}#handsInfo:empty{display:none}#status{background:#0009;border-radius:12px;padding:10px 16px;font-size:15px;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}#recBadge{top:calc(var(--safe-top) + 10px);background:var(--danger);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:800;position:absolute;left:50%;transform:translate(-50%)}#testOverlay{text-align:center;background:#0000008c;border-radius:18px;flex-direction:column;align-items:center;gap:4px;padding:14px 24px;display:flex;position:absolute;top:26%;left:50%;transform:translate(-50%)}.test-emoji{font-size:84px;line-height:1.1}.test-label{font-size:20px;font-weight:800}.test-count{color:var(--accent-2);min-height:1.4em;font-size:16px}#testOverlay.capture .test-count{color:var(--ok);font-weight:800}#eventLog{left:8px;bottom:calc(var(--safe-bottom) + 78px);pointer-events:none;flex-direction:column;gap:3px;font-size:14px;display:flex;position:absolute}#eventLog div{background:#00000073;border-radius:6px;width:fit-content;padding:3px 8px}#eventLog .combo{background:#ff6e28bf;font-weight:800}#toolbar{padding:10px 10px calc(var(--safe-bottom) + 10px);background:linear-gradient(#0000,#000000bf);gap:8px;display:flex;position:absolute;bottom:0;left:0;right:0}#toolbar button{background:#1b1e2ad9;flex:1;padding:12px 4px;font-size:14px}.modal{z-index:10;background:#0009;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--panel);width:min(600px,100%);max-height:88dvh;padding-bottom:var(--safe-bottom);border-radius:18px 18px 0 0;flex-direction:column;display:flex}.sheet-head{justify-content:space-between;align-items:center;padding:12px 12px 4px 18px;display:flex}.sheet-head h2{margin:0;font-size:18px}.sheet-body{gap:12px;padding:8px 18px 18px;display:grid;overflow-y:auto}.sheet-body p{color:#cfd3e6;margin:0;line-height:1.55}.sheet-body textarea{width:100%;min-height:46dvh;color:var(--text);resize:vertical;background:#0b0d14;border:1px solid #2c3142;border-radius:10px;padding:10px;font:12px/1.5 ui-monospace,Menlo,Consolas,monospace}.sheet-body video{background:#000;border-radius:10px;width:100%;max-height:50dvh}.row{gap:8px;display:flex}.row button{flex:1}.ghost-link{color:var(--muted);text-align:center;border:1px solid #2c3142;border-radius:10px;flex:1;padding:10px 12px;font-size:14px;text-decoration:none;display:block}.field{grid-template-columns:1fr auto;align-items:center;gap:10px;display:grid}.field select{font:inherit;color:var(--text);background:var(--panel-2);border:1px solid #2c3142;border-radius:8px;padding:8px}.result-table{border-collapse:collapse;width:100%;font-size:14px}.result-table th,.result-table td{text-align:left;border-bottom:1px solid #23273a;padding:6px 4px}.pass{color:var(--ok);font-weight:800}.fail{color:var(--danger);font-weight:800}.muted{color:var(--muted);font-size:13px}#toast{left:50%;bottom:calc(var(--safe-bottom) + 90px);z-index:20;background:#141620f2;border:1px solid #2c3142;border-radius:10px;padding:10px 16px;font-size:14px;position:fixed;transform:translate(-50%)}.source-video{opacity:.01;pointer-events:none;width:2px;height:2px;position:fixed;top:0;left:0}
