:root { color-scheme:dark; --bg:#081827; --white:#ecf6ff; --secondary:#b6c4d6; --accent:#54deed; }
* {box-sizing:border-box}
html,body{padding:0;margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--white)}
button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}
#ar-stage{position:fixed;inset:0;overflow:hidden;background:radial-gradient(circle at 47% 47%,#183955 0%,#071625 65%)}
#ar-stage canvas,#ar-stage video{object-fit:cover}
.screen-shade{position:fixed;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,rgba(5,15,28,.66) 0,transparent 17%,transparent 73%,rgba(5,15,28,.78) 100%)}
.hud{position:fixed;left:0;right:0;z-index:8;display:flex;align-items:center;padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right));}
.top-hud{top:0;height:84px;justify-content:space-between;gap:20px}
.brand{font-size:18px;font-weight:800;letter-spacing:.17em;display:flex;align-items:center;gap:13px;white-space:nowrap}
.brand-light{font-weight:400;color:var(--accent)}.brand-mark{display:block;width:24px;height:24px;border:2px solid var(--accent);border-radius:50%;box-shadow:0 0 17px #34e1ff66}.phase{font-size:10px;letter-spacing:.2em;color:#c7d0dd;font-weight:700;white-space:nowrap}.phase-separator{color:var(--accent);padding:0 9px}
.intro{position:fixed;inset:0;display:grid;place-items:center;z-index:5;padding:90px 22px 98px;background:linear-gradient(140deg,rgba(7,20,37,.94),rgba(12,39,62,.90))}.intro[hidden]{display:none}
.intro-panel{max-width:485px;width:100%;}.eyebrow{font-weight:800;color:var(--accent);font-size:11px;letter-spacing:.22em;margin-bottom:24px}
h1{font-size:clamp(36px,6vw,64px);line-height:1.12;margin:0 0 20px;letter-spacing:-.055em;font-weight:760}h1 em{font-style:normal;font-weight:400;color:var(--accent)}
p{line-height:1.62;color:#c7d4df;font-size:15px;margin:0 0 28px;max-width:450px}.primary{display:flex;width:100%;max-width:315px;justify-content:space-between;align-items:center;border:0;border-radius:12px;padding:17px 20px;background:#55dfeb;color:#092136;font-weight:800;font-size:14px;box-shadow:0 10px 32px #00c8ea24}.primary:hover{background:#86f1fa}.secondary-link{display:inline-block;color:#d2e9f2;font-weight:600;font-size:13px;margin:18px 0 5px;text-underline-offset:5px}.small-note{font-size:11px;color:#93a6ba;margin-top:16px;max-width:450px}
.bottom-hud{bottom:0;min-height:96px;padding-top:12px;padding-bottom:max(20px,env(safe-area-inset-bottom));gap:12px;justify-content:space-between;flex-wrap:wrap}
.tracking-status{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--white);max-width:60%;line-height:1.4}.dot{width:8px;height:8px;border-radius:50%;background:#7a8ba3;flex-shrink:0;box-shadow:0 0 0 3px #7a8ba328}.dot.found{background:#5de4ce;box-shadow:0 0 0 4px #5de4ce30,0 0 14px #5de4ce88}.dot.error{background:#ff9a73;box-shadow:0 0 0 3px #ff9a7333}
.ghost{background:#122c43b8;border:1px solid #75d8ee78;color:#d9f5fc;border-radius:8px;padding:10px 13px;font-size:12px;font-weight:700;white-space:nowrap}
.step-label{font-size:10px;letter-spacing:.12em;color:#8a9caf;white-space:nowrap}.step-label span{display:block;margin-top:4px;color:#d0deeb;font-size:9px}
.progress-track{position:fixed;left:0;right:0;bottom:0;height:3px;z-index:11;background:#1b3c54}.progress-bar{height:100%;width:0;background:linear-gradient(90deg,#42baff,#6fe9e0);box-shadow:0 0 14px #32ceff;transition:width .07s linear}
@media(max-width:520px){.top-hud{height:68px}.brand{font-size:16px}.phase{font-size:8px;letter-spacing:.11em}.intro{padding-top:80px}.bottom-hud{justify-content:space-between;gap:10px}.tracking-status{max-width:100%;flex:1 1 100%}.step-label{font-size:9px}.ghost{font-size:11px}}
/* v0.8: keep the camera/AR composition clear; shade only the narrow HUD regions. */
.camera-active .screen-shade{background:linear-gradient(180deg,rgba(5,15,28,.46) 0,transparent 12%,transparent 86%,rgba(5,15,28,.48) 100%)}
@media(max-height:680px){.intro{overflow-y:auto;display:block;padding-top:76px;padding-bottom:110px}.intro-panel{margin:auto}.eyebrow{margin-bottom:14px}h1{font-size:clamp(29px,5vw,46px);margin-bottom:12px}p{margin-bottom:14px}.secondary-link{margin-top:12px}}
