:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #f2f2f2;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

#bg { position: fixed; inset: -40px; background-size: cover; background-position: center;
  filter: blur(40px) brightness(.45) saturate(1.3); transition: background-image .4s; z-index: -1; }

main { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); text-align: center; }

#art { width: min(70vw, 42vh, 320px); aspect-ratio: 1; border-radius: 14px; object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); }

#meta h1 { margin: 0; font-size: 1.4rem; font-weight: 700; }
#meta p { margin: 4px 0 0; color: rgba(255,255,255,.65); }

#start { font: inherit; font-weight: 600; font-size: 1.1rem; padding: 14px 32px; border: 0; border-radius: 999px;
  background: #fa2d48; color: #fff; cursor: pointer; }
#start:active { transform: scale(.97); }
#hint { margin: 0; max-width: 28em; font-size: .9rem; color: rgba(255,255,255,.55); }
body.started #start, body.started #hint { display: none; }

#status { margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
#dot { width: 8px; height: 8px; border-radius: 50%; background: #888; }
#dot.ok { background: #30d158; }
#dot.warn { background: #ffd60a; }
#dot.err { background: #ff453a; }

#debug { width: min(100%, 520px); font-size: .8rem; color: rgba(255,255,255,.6); text-align: left; }
#debug summary { cursor: pointer; text-align: center; }
#controls { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
#controls button { font-size: 1.3rem; width: 56px; height: 44px; border-radius: 10px; border: 0;
  background: rgba(255,255,255,.12); color: #fff; }
#log { max-height: 30vh; overflow: auto; white-space: pre-wrap; margin: 0; padding: 8px;
  background: rgba(0,0,0,.4); border-radius: 8px; }
