html, body { margin: 0 !important; width: 100%; height: 100%; overflow: hidden !important; overscroll-behavior: none; background: #071111 !important; }
body.lt-mounted > :not(#lt-lab) { display: none !important; }
#lt-lab { --mint: #91ffce; --ink: #071614; position: fixed; inset: 0; z-index: 2147483646; isolation: isolate; overflow: hidden; background: #081415; color: #f2faf7; font: 500 16px/1.35 system-ui,sans-serif; touch-action: manipulation; text-align: center; color-scheme: dark; }
#lt-lab *, #lt-lab *::before, #lt-lab *::after { box-sizing: border-box; }
#lt-lab [hidden] { display: none !important; }
#lt-lab button, #lt-lab select { margin: 0; min-height: 44px; max-width: 100%; padding: 8px 14px; border: 1px solid #ffffff52; border-radius: 12px; background: #102121eb; color: white; font: 650 15px/1.2 system-ui,sans-serif; letter-spacing: normal; white-space: nowrap; cursor: pointer; }
#lt-lab :focus-visible { outline: 3px solid white; outline-offset: 2px; }
#lt-lab button:disabled { opacity: .55; }
#lt-lab .lt-primary { background: var(--mint); color: var(--ink); border-color: transparent; }
#lt-lab video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; background: #071111; }
#lt-lab .lt-layer { position: absolute; inset: 0; }
#lt-lab .lt-intro { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 18px; background: radial-gradient(ellipse at 50% 40%,#193532,#081415 72%); }
#lt-lab .lt-mark { width: 42px; height: 42px; border: 2px solid var(--mint); border-radius: 50%; display: grid; place-content: center; }
#lt-lab .lt-mark::after { content: ""; border: 4px solid var(--mint); border-radius: 50%; }
#lt-lab h1 { margin: 0; color: white; font: 760 clamp(28px,7vw,46px)/1 system-ui,sans-serif; letter-spacing: -.045em; }
#lt-lab p { margin: 0; color: inherit; }
#lt-lab .lt-help { max-width: 32ch; color: #c8dcd6; }
#lt-lab .lt-actions, #lt-lab .lt-top, #lt-lab .lt-bottom { display: flex; gap: 8px; align-items: center; justify-content: center; }
#lt-lab .lt-top, #lt-lab .lt-bottom { position: absolute; left: max(12px,env(safe-area-inset-left)); right: max(12px,env(safe-area-inset-right)); }
#lt-lab .lt-top { top: max(12px,env(safe-area-inset-top)); justify-content: space-between; }
#lt-lab .lt-bottom { bottom: max(16px,env(safe-area-inset-bottom)); }
#lt-lab .lt-count, #lt-lab .lt-result { background: #0a1618df; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: white; }
#lt-lab .lt-fire { min-width: min(36vw,190px); min-height: 54px; font-size: 18px; }
#lt-lab .lt-reticle { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; }
#lt-lab .lt-reticle { width: clamp(80px,32vmin,180px); aspect-ratio: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px #122623, inset 0 0 0 1px #122623; display: grid; place-content: center; }
#lt-lab .lt-reticle::after { content: ""; width: 5px; height: 5px; background: white; border-radius: 50%; box-shadow: 0 0 2px black; }
#lt-lab .lt-result { position: absolute; top: calc(50% + clamp(40px,16vmin,90px) + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
#lt-lab .lt-result[data-hit="yes"] { background: var(--mint); color: var(--ink); }
@media(max-height: 360px) { #lt-lab .lt-intro { gap: 6px; } #lt-lab .lt-mark { display:none; } #lt-lab .lt-bottom {bottom: 5px;} }
#lt-error:empty { display: none; }
#lt-lab .lt-top { gap: 4px; }
#lt-lab .lt-top button { padding-inline: 9px; }
@media(max-height: 420px) { #lt-lab .lt-result { top: auto; bottom: 12px; left: 12px; transform:none; } #lt-lab .lt-bottom { justify-content:flex-end; } }
#lt-lab .lt-players { display:grid; grid-template-columns: repeat(2,minmax(100px,1fr)); gap:7px; }
#lt-lab .lt-players button { display:flex; align-items:center; gap:8px; text-align:left; }
#lt-lab .lt-players button span { font-size:22px; }
#lt-lab .lt-reset-start { background:transparent; }
#lt-lab #lt-spot { position:absolute; aspect-ratio:1; border:2px solid #7cffc5; box-shadow:0 0 0 1px #13261c; border-radius:50%; transform:translate(-50%,-50%); pointer-events:none; }
#lt-lab .lt-diag { position:absolute; left:max(10px,env(safe-area-inset-left)); bottom:max(82px,calc(env(safe-area-inset-bottom) + 74px)); width:min(270px,calc(100% - 20px)); padding:6px 10px; border:1px solid #537168; border-radius:12px; background:#081713ef; text-align:left; font:500 13px/1.25 system-ui,sans-serif; font-variant-numeric:tabular-nums; }
#lt-lab .lt-line { display:flex; align-items:center; justify-content:space-between; gap:4px; }
#lt-lab .lt-diag canvas { display:block; width:100%; height:27px; margin:2px 0; background:#162520; }
#lt-lab .lt-diag .lt-values { color:#e4f2ec; }
#lt-lab #lt-why { color:#99f8ca; }
#lt-lab #lt-cal { padding:2px 7px; min-height:30px; font-size:13px; }
#lt-lab [data-reload] { font-size:16px; }
#lt-lab .lt-top { justify-content:start; }
#lt-lab #lt-count { margin-right:auto; }
@media(max-width:380px) { #lt-lab .lt-top {left:5px;right:5px;} #lt-lab .lt-count {padding:6px 4px;font-size:12px;} #lt-lab .lt-top button {padding:5px 7px;} }
@media(orientation:portrait) and (max-height:670px) { #lt-lab .lt-diag {top:max(64px,calc(env(safe-area-inset-top) + 54px));bottom:auto;} }
@media(orientation:landscape) { #lt-lab .lt-diag { width:min(29vw,255px); bottom:9px; } #lt-lab .lt-result { top:calc(50% + clamp(40px,16vmin,90px) + 4px);left:50%;bottom:auto;transform:translateX(-50%); } #lt-lab .lt-bottom {justify-content:flex-end;} }
@media(max-height:420px) { #lt-lab .lt-players {grid-template-columns:repeat(4,1fr);} }

#lt-lab #lt-log { min-height:28px; padding:2px 7px; font-size:13px; }
#lt-lab #lt-scale { color:#b6cac2; font-size:12px; }
#lt-lab #lt-report { max-width:min(94vw,370px); max-height:95dvh; margin:auto; color:white; background:#10231f; border:1px solid #82998a; border-radius:12px; padding:16px; text-align:left; }
#lt-lab #lt-report::backdrop { background:#020906bd; }
#lt-lab #lt-report h2 { margin:0; font:700 20px/1.2 system-ui; color:white; }
#lt-lab #lt-report p,#lt-lab #lt-report label { display:block; margin:8px 0; font-size:14px; }
#lt-lab #lt-group { display:block; width:100%; margin:4px 0; padding:7px; background:#172f28; color:white; border:1px solid #809f91; border-radius:6px; font:16px system-ui; }
#lt-lab #lt-report-status { color:var(--mint); }
#lt-lab .lt-bottom {gap:5px;}
#lt-lab #lt-fire { min-width:0; }
@media(max-width:365px) { #lt-lab .lt-bottom button,#lt-lab .lt-bottom select {padding-inline:8px;} }
@media(orientation:landscape) and (max-height:425px) { #lt-lab .lt-diag {width: min(34vw,245px);} #lt-lab #lt-last-report:not([hidden]) { position:absolute; top:8px;left:8px; } }

#lt-lab .lt-bottom { gap:8px; }
#lt-lab #lt-fire { flex:0 1 520px; min-height:82px; font-size:clamp(25px,5vw,36px); font-weight:750; border-radius:19px; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
#lt-lab #lt-fire:active { background:#bbffe0; }
#lt-lab #lt-sound { flex:0 0 48px; min-height:48px; font-size:20px; padding:4px; }
@media(orientation:portrait) and (min-height:671px) { #lt-lab .lt-diag { bottom:max(112px,calc(env(safe-area-inset-bottom) + 104px)); } }
@media(orientation:landscape) { #lt-lab .lt-bottom {left:38%;} #lt-lab #lt-fire { max-width:430px; min-height:64px; } }
