/* ===== 공통 (폰 업로드 · 설정 화면) ===== */
* { box-sizing: border-box; }
html, body { margin: 0; }
body.page {
  min-height: 100vh;
  background: #f3f4f6;
  color: #111827;
  font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  padding: 16px;
}
.card {
  max-width: 480px;
  margin: 24px auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
h1 { font-size: 24px; margin: 0 0 16px; }
.muted { color: #6b7280; }
.small { font-size: 14px; color: #6b7280; margin-top: 24px; text-align: center; }
.small a { color: #2563eb; }

input[type=text], input[type=password], input[type=number], select {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  margin: 6px 0 12px;
  background: #fff;
}
.field { display: block; margin-bottom: 8px; }
.field span { font-size: 15px; color: #374151; }
.row { display: flex; gap: 8px; align-items: center; }
.row select { flex: 1; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 18px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  margin: 8px 0;
}
.btn-big { padding: 22px; font-size: 20px; background: #dbeafe; color: #1e3a8a; }
.btn-primary { background: #2563eb; color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }

.msg { min-height: 1.5em; }
.msg.err, .results .err { color: #b91c1c; }
.msg.ok, .results .ok { color: #047857; }

.bar { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; margin-top: 12px; }
#bar-fill { height: 100%; width: 0; background: #2563eb; transition: width .3s; }
.results { list-style: none; padding: 0; font-size: 15px; word-break: break-all; }

/* ===== 태블릿 액자 화면 ===== */
body.frame {
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  cursor: none;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}
.slide {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: contain;     /* 사진이 잘리지 않게 전체를 보여줌 */
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background: #000;
}
.slide.show { opacity: 1; }
#blackout {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000; z-index: 10; display: none;
}
#blackout.on { display: block; }
#notice {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: #9ca3af; font-size: 22px; text-align: center; z-index: 20;
  max-width: 80vw;
}
#notice input, #notice button { font-size: 22px; padding: 10px; border-radius: 8px; border: 0; margin-top: 12px; }
#notice button { background: #2563eb; color: #fff; }
#status {
  position: fixed; right: 10px; bottom: 6px;
  color: rgba(255,255,255,.25); font-size: 12px; z-index: 30;
}
