/* 흰 바탕 · 큰 글씨 · 큰 버튼. 일부러 밝은 화면 한 가지로만 만든다(두 집단 화면을 똑같이 유지). */
:root {
  --bg: #ffffff;
  --text: #15171c;
  --muted: #5d6370;
  --line: #d6dae2;
  --soft: #f2f4f8;
  --accent: #1d5bd6;
  --accent-soft: #e8effc;
  --on-accent: #ffffff;
  --danger: #b42318;
  --ok: #137a39;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 20px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
main {
  max-width: 560px; margin: 0 auto; padding-block: 18px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 16px;
}
#app { display: flex; flex-direction: column; gap: 16px; }
h1 { font-size: 26px; line-height: 1.4; margin: 4px 0 0; text-wrap: balance; }
h1.q { font-size: 25px; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); font-size: 17px; }
.step { font-size: 16px; font-weight: 700; color: var(--accent); margin: 0; }
.top { display: flex; flex-direction: column; gap: 8px; }
.dots { display: flex; gap: 4px; }
.dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dots span.on { background: var(--accent); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.facts li { padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.box.soft { background: var(--soft); border-color: var(--soft); font-size: 18px; }
.ticket .tk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tk-label { color: var(--muted); font-size: 17px; }
.ticket strong { font-size: 24px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.12em; }

button { font: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.big {
  display: block; width: 100%; min-height: 62px; padding: 12px 16px; font-size: 21px; font-weight: 700;
  border-radius: 14px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
}
.big.ghost { background: var(--bg); color: var(--accent); }
.big:disabled { background: var(--soft); border-color: var(--line); color: var(--muted); font-weight: 600; font-size: 18px; cursor: default; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 10px; font-size: 17px; align-self: center; }
.quit { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.quit .box { width: 100%; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  width: 100%; min-height: 60px; padding: 12px 18px; text-align: left; font-size: 20px; font-weight: 600;
  background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 14px;
}
.choice.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice-na { margin-top: 8px; border-style: dashed; color: var(--muted); font-weight: 500; }
@media (hover: hover) { .choice:hover { border-color: var(--accent); } }

label.field { font-weight: 700; margin-bottom: -6px; }
select, input[type=text], input[type=password] {
  width: 100%; min-height: 60px; font: inherit; font-size: 21px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
}
.codein { text-transform: uppercase; font-size: 26px; }
.err { color: var(--danger); font-weight: 700; }
.err:empty { display: none; }
.status { font-size: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.status.ok { color: var(--ok); font-weight: 700; }

.notice { border: 3px solid var(--text); border-radius: 14px; padding: 18px 14px; font-size: 23px; font-weight: 800; text-align: center; }
.player { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.cover { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; }
.cover-play { width: 76px; height: 76px; border-radius: 50%; background: var(--on-accent); color: var(--text); font-size: 30px; display: flex; align-items: center; justify-content: center; padding-left: 6px; }
.bar { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin-top: -4px; }
.bar > div { height: 100%; width: 0; background: var(--accent); }
.time { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); margin-top: -10px; font-variant-numeric: tabular-nums; }

.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 10px; }
.thumb img { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.thumb > div { min-width: 0; }
.check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: var(--on-accent); font-size: 42px; display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } * { scroll-behavior: auto !important; } }
[hidden] { display: none !important; }

