* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #fff; color: #1d1d1f; font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.4rem; margin: 8px 0 12px; }
label { display: block; margin: 14px 0; font-weight: 600; }
input { display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 1.05rem; border: 1px solid #b8b8c0; border-radius: 10px; }
button { width: 100%; padding: 14px; margin-top: 12px; font-size: 1.05rem; border-radius: 10px; border: 1px solid #b8b8c0; background: #f2f2f5; color: #1d1d1f; }
button.primary { background: #1f4fa3; border-color: #1f4fa3; color: #fff; font-weight: 600; }
button:disabled { opacity: .5; }
.err { color: #b3261e; font-weight: 600; }
ol li { margin-bottom: 8px; }
#bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 10px 16px; background: #1f4fa3; color: #fff; font-weight: 600; }
#timer.low { color: #ffd54f; }
.pic { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.hint { margin: 0 0 6px; color: #6e6e73; font-size: .95rem; }
#pic-box { position: relative; width: 100%; }
#opts button { position: absolute; margin: 0; padding: 0; width: auto; background: transparent; border: 3px solid transparent; border-radius: 8px; }
#opts button.on { border-color: #1f4fa3; background: rgba(31, 79, 163, .18); box-shadow: 0 0 0 3px rgba(31, 79, 163, .35); }
#opts button:active { background: rgba(31, 79, 163, .10); }
.pic img { width: 100%; height: auto; display: block; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.gaps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gaps button { width: auto; margin: 0; padding: 8px 12px; font-size: .95rem; }
.card { border: 1px solid #d2d2d7; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.card p { margin: 6px 0; }
.card.unlocked { border-color: #1f7a3a; background: #f1f8f3; }
.state { font-weight: 600; color: #6e6e73; }
.state.ok { color: #1f7a3a; }
.state.busy { color: #b26a00; }
.big { font-size: 1.2rem; font-weight: 600; }
.statement { font-size: 1.25rem; font-weight: 600; min-height: 4.5em; margin: 8px 0 14px; }
.likert button { margin-top: 8px; text-align: left; padding-left: 18px; }
.likert button.on { background: #1f4fa3; border-color: #1f4fa3; color: #fff; font-weight: 600; }
.staff { text-align: center; margin-top: 28px; font-size: .9rem; } .staff a { color: #6e6e73; }
