/* 받는 웹페이지의 모양(PW-050). 글꼴과 그림을 다른 서버에서 불러오지 않는다. */
:root {
  --ink: #1a1a1a;
  --soft: #5a5a5a;
  --line: #d0d0d0;
  --accent: #0b57d0;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: #f4f5f7;
}

main {
  max-width: 46rem;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

h1 { margin: 0 0 1.5rem; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--soft); }

[hidden] { display: none !important; }

.lead { font-size: 1.25rem; line-height: 1.6; margin: 0 0 1rem; }
.note { color: var(--soft); margin: 0.6rem 0; line-height: 1.6; }

.qr-row { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }

/* 화면에서 한 변이 6cm보다 작지 않게 한다(설계서 3.7) */
#qr { width: 7cm; height: 7cm; image-rendering: pixelated; flex: none; }

.steps { margin: 0; padding-left: 1.4rem; font-size: 1.15rem; line-height: 2.1; flex: 1 1 14rem; }

.timer { height: 8px; background: #e6e8eb; border-radius: 4px; margin: 1.2rem 0 0.4rem; overflow: hidden; }
.bar { height: 100%; width: 100%; background: var(--accent); transition: width 1s linear; }

.field { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.label { width: 4rem; color: var(--soft); }
.value { flex: 1 1 10rem; font-size: 1.15rem; word-break: break-all; }
.secret { font-family: Consolas, "D2Coding", monospace; }

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}
button:hover { background: #eef3fd; }
button:focus-visible { outline: 3px solid #9bbcf5; outline-offset: 2px; }
#clear-now, #resume, #again-cleared, #again-failed { margin-top: 1rem; background: var(--accent); color: #fff; }

.big { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.big-box { background: var(--paper); border-radius: 12px; padding: 2rem; max-width: 60rem; width: 100%; text-align: center; }
.big-text { font-family: Consolas, "D2Coding", monospace; font-size: 3.2rem; line-height: 1.6; margin: 1rem 0 1.5rem; word-break: break-all; }
.big-text .gap { display: inline-block; width: 0.6em; }

/* 헷갈리는 글자(0과 O, 1과 l)를 가리기 위한 색 */
.c-digit { color: #b3261e; }
.c-upper { color: #0b57d0; }
.c-lower { color: #1a1a1a; }
.c-symbol { color: #146c2e; }

footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.9rem; }
