/* The Ray-Ban Display is additive: black shows as transparent, so keep the
   background black and use bright, high-contrast foregrounds. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 600px; height: 600px; background: #000; color: #fff; overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { position: relative; width: 600px; height: 600px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

#status { display: flex; justify-content: space-between; font-size: 24px; font-weight: 600; min-height: 32px; }
#lockState.locked { color: #5cff8a; }
#lockState.unlocked { color: #ffcf4a; }
#distance { color: #9ad0ff; }

#grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
.btn { position: relative; border: 3px solid #444; border-radius: 16px; background: #000; color: #fff;
  font-size: 22px; font-weight: 600; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; text-align: center; line-height: 1.1; padding: 4px; }
.btn .icon { font-size: 28px; }
.btn .state { font-size: 16px; color: #aaa; min-height: 0; }
.btn .state:empty { display: none; }
.btn.on .state { color: #5cff8a; }
.btn.protected::after { content: "🔒"; font-size: 14px; opacity: .7; position: absolute; top: 6px; right: 8px; }
.btn.focused { border-color: #4aa8ff; background: #0b2a4a; }
.btn.busy { opacity: .5; }

#hint { text-align: center; font-size: 18px; color: #aaa; }
#banner { text-align: center; font-size: 22px; font-weight: 700; color: #5cff8a; margin-top: -6px; }

.findTitle { font-size: 30px; font-weight: 700; color: #9ad0ff; }
#findArrow { transition: transform .4s ease-out; color: #5cff8a; }
#findDistance { font-size: 44px; font-weight: 700; }
#statsBody { width: 100%; display: flex; flex-direction: column; gap: 10px; font-size: 24px; }
#statsBody .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #222; padding-bottom: 6px; }
#statsBody .row span { color: #aaa; }
#statsBody .row b { color: #fff; font-weight: 700; }

.overlay { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; }
.hidden { display: none !important; }
#confirmTitle { font-size: 34px; font-weight: 700; color: #ffcf4a; }
.arrow { font-size: 150px; line-height: 1; color: #4aa8ff; }
.arrow.ready { color: #5cff8a; }
#confirmStep { font-size: 30px; font-weight: 600; }
.timer { width: 80%; height: 10px; border-radius: 5px; background: #222; overflow: hidden; }
#timerBar { height: 100%; width: 100%; background: #ffcf4a; }
.small { font-size: 18px; color: #aaa; }

#toast { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 18px; border-radius: 14px;
  font-size: 24px; font-weight: 600; text-align: center; background: #111; border: 3px solid #666; }
#toast.good { border-color: #5cff8a; color: #5cff8a; }
#toast.bad { border-color: #ff5c5c; color: #ff8a8a; }
