:root {
  --ink: #1f2328;
  --muted: #5f666e;
  --line: #d5d8dc;
  --surface: #f6f6f5;
  --selected: #eceded;
  --error: #a4262c;
  --stage: #1c1c1e;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px calc(36px + env(safe-area-inset-bottom));
}

.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 14px; }

h1 { margin: 0 0 20px; font-size: 22px; line-height: 1.35; font-weight: 600; }
h1 .en { font-size: 16px; font-weight: 400; }

p { margin: 0 0 14px; }

.zh, .en { display: block; }
.en { color: var(--muted); font-size: 14px; line-height: 1.45; }
.copy .en { margin-top: 2px; }

.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field > legend, .field > label.title { display: block; padding: 0; margin-bottom: 10px; font-weight: 500; }
.field.invalid > legend .zh, .field.invalid > label.title .zh { color: var(--error); }

.hint { margin: 8px 0 0; color: var(--error); font-size: 14px; }
.loading { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ink); background: var(--selected); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale .choice { justify-content: center; margin: 0; padding: 0; position: relative; font-variant-numeric: tabular-nums; }
.scale .choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.circles .choice { border: 0; min-height: 52px; background: none; }
.circles .choice:has(input:checked) { background: none; }
.dot {
  width: 30px;
  height: 30px;
  border: 1.5px solid #8a9096;
  border-radius: 50%;
}
.circles .choice:has(input:checked) .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.circles .choice:has(input:focus-visible) { outline: none; }
.circles .choice:has(input:focus-visible) .dot { outline: 2px solid var(--ink); outline-offset: 3px; }

.scale-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }
.scale-ends > * { flex: 1; }
.scale-ends > .mid { text-align: center; }
.scale-ends > :last-child { text-align: right; }
.scale-ends .zh { font-size: 13px; color: var(--muted); }
.scale-ends .en { font-size: 12px; }

input[type=text], input[type=number], textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}
input[type=number] { width: 120px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }

button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
button .en { color: rgba(255, 255, 255, .78); font-weight: 400; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }

.note { padding: 12px 14px; border-radius: 10px; background: var(--surface); }

/* Exposure: neutral, fixed surround so every participant sees the same frame. */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--stage);
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.stage-head {
  flex: none;
  width: 100%;
  max-width: 480px;
  padding: calc(8px + env(safe-area-inset-top)) 20px 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  text-align: center;
}
.timer { height: 2px; margin-top: 6px; border-radius: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.timer i { display: block; height: 100%; background: rgba(255, 255, 255, .38); transform-origin: left center; }
.stage-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 2px 0 calc(6px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-body img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  pointer-events: none;
}
.cue { font-size: 17px; color: rgba(255, 255, 255, .8); }
