:root { font-family: system-ui, sans-serif; color: #f5f2e9; background: #18261f; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; min-height: 48px; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid #dced87; outline-offset: 4px; }
#camera-stage { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
#camera-stage video { z-index: 0 !important; }
#camera-stage a-scene { position: absolute; inset: 0; z-index: 1; }
#camera-stage canvas { background: transparent !important; }
.ar-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; padding: max(16px, env(safe-area-inset-top)) 18px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(#18261fdd, transparent); }
.close { padding: 11px 14px; border: 1px solid #ffffff55; border-radius: 25px; background: #18261fe8; text-decoration: none; font-size: 13px; }
.badge { font-size: 9px; letter-spacing: 1.4px; }
.overlay { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.status-card { position: absolute; top: calc(max(16px, env(safe-area-inset-top)) + 68px); left: 18px; right: 18px; max-width: 510px; margin: auto; padding: 22px; border: 1px solid #ffffff26; border-radius: 14px; background: #18261ff0; pointer-events: auto; }
#state-label { font-size: 10px; letter-spacing: 1.8px; color: #dced87; }
h1 { font: 500 27px/1.15 Georgia, serif; margin: 12px 0; }
.status-card p { font-size: 13px; line-height: 1.6; margin: 0; color: #d8ded5; }
#start { width: 100%; margin: 20px 0 12px; border: 0; border-radius: 6px; background: #dced87; color: #243e34; font-weight: 650; }
#start:disabled { opacity: .65; cursor: wait; }
#start[hidden] { display: none; }
#help-links { font-size: 11px; line-height: 1.7; }
.reticle { display: none; position: absolute; width: 170px; height: 95px; border: 2px dashed #dced87; border-radius: 5px; left: 50%; top: 55%; transform: translate(-50%, -50%); }
.reticle span { position: absolute; top: 108px; left: -20px; right: -20px; font-size: 11px; text-align: center; text-shadow: 0 1px 3px black; }
.controls { pointer-events: auto; position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 18px max(18px, env(safe-area-inset-bottom)); background: #18261ff0; border-radius: 18px 18px 0 0; }
.selection { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 510px; margin: 0 auto 12px; }
#dish-name { font-weight: 600; }
#dimensions { font-size: 11px; color: #dced87; }
.switcher { display: flex; gap: 8px; max-width: 510px; margin: auto; }
.switcher button { flex: 1; border: 1px solid #ffffff55; background: transparent; color: #f5f2e9; border-radius: 6px; font-size: 14px; }
.switcher button[aria-pressed="true"] { background: #dced87; border-color: #dced87; color: #243e34; }
.controls > p { text-align: center; font-size: 9px; color: #c8d2c7; margin: 12px 0 0; }
body[data-state="searching"] .reticle, body[data-state="lost"] .reticle { display: block; }
body[data-state="found"] .status-card { padding: 12px 18px; }
body[data-state="found"] h1 { font: 600 16px system-ui, sans-serif; margin: 5px 0; }
body[data-state="found"] #help-links { display: none; }
body[data-state="error"] #state-label { color: #ffbfaa; }
@media (max-height: 620px) { .status-card { padding: 12px; } h1 { font-size: 20px; margin-block: 8px; } .status-card p { font-size: 11px; } .controls { padding-top: 10px; } .badge { display: none; } #start { margin-top: 10px; } }
