@charset "utf-8";
/* =========================================================
   DA&E 콘텐츠 어워드 — css/vote-gate.css
   ---------------------------------------------------------
   ▶ 두 화면이 함께 사용합니다.
       1) vote-gate.html — 명찰 번호 입력 (입장 전용 페이지)
       2) vote.html      — 번호 확인 중(boot) 화면
   ▶ 입장 페이지와 투표 화면은 **서로 다른 파일**입니다.
     입장 페이지는 서버를 조회하지 않고 곧바로 vote.html 로 이동합니다.
   ▶ 색·버튼 등 공통 토큰은 css/style.css(:root)·css/vote.css 를 그대로 씁니다.
   ========================================================= */

/* =========================================================
   1. 입장 페이지 — 명찰번호 입력 (vote-gate.html)
   ========================================================= */
.vt_gate {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(0, 208, 255, 0.24), transparent 62%),
    radial-gradient(700px 400px at 96% 4%, rgba(126, 91, 230, 0.24), transparent 62%),
    #0b0d12;
}
.vt_gate[hidden] { display: none; }

.vt_gate_in {
  width: 100%; max-width: 430px; text-align: center; color: #fff;
}

.vt_brand {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.vt_brand span { color: var(--cyan); }

.vt_gate_ic {
  display: inline-grid; place-items: center;
  width: 66px; height: 66px; margin-top: 26px;
  border-radius: 20px; background: var(--brand); color: #fff; font-size: 1.5rem;
  box-shadow: 0 14px 34px rgba(0, 116, 224, 0.48);
}

.vt_gate h1 {
  margin-top: 18px; font-size: 1.72rem; font-weight: 800; letter-spacing: -0.04em;
  word-break: keep-all;
}
.vt_gate_d {
  margin-top: 11px; font-size: 0.94rem; line-height: 1.72;
  color: rgba(255, 255, 255, 0.62); word-break: keep-all;
}
.vt_gate_d b { color: #fff; font-weight: 800; }

.vt_badge_in {
  width: 100%; margin-top: 28px;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.38);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  color: #fff; text-align: center;
  font-size: 2rem; font-weight: 800; letter-spacing: 0.34em;
  text-indent: 0.34em;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.vt_badge_in::placeholder { color: rgba(255, 255, 255, 0.2); letter-spacing: 0.34em; }
.vt_badge_in:focus {
  outline: none; border-color: var(--cyan); background: rgba(0, 0, 0, 0.58);
}
.vt_badge_in.is_err { border-color: #ff7b74; }

.vt_gate_msg {
  min-height: 22px; margin-top: 10px;
  font-size: 0.87rem; font-weight: 700; word-break: keep-all;
}
.vt_gate_msg.err { color: #ff9b95; }
.vt_gate_msg.ok { color: #6fe3c4; }

.vt_gate form .vt_btn { margin-top: 6px; }
.vt_gate_help {
  margin-top: 24px; font-size: 0.79rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.42); word-break: keep-all;
}
.vt_gate_help i { margin-right: 4px; }
.vt_gate_help b { color: rgba(255, 255, 255, 0.72); font-weight: 700; }

/* 이동 중 표시 — 버튼이 잠깐 잠깁니다 */
.vt_gate.is_leaving .vt_badge_in { opacity: 0.55; }

/* 빌드 표식 — 캐시에 갇힌 예전 화면과 구분하기 위한 작은 문구 */
.vt_gate_rev {
  margin-top: 12px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   2. 번호 확인 중 — vote.html 의 첫 화면 (boot)
      · 서버 조회는 이 화면에서만 일어납니다.
      · 실패하면 '다시 시도' / '번호 다시 입력' 버튼이 나타납니다.
   ========================================================= */
.vt_boot {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(0, 208, 255, 0.24), transparent 62%),
    radial-gradient(700px 400px at 96% 4%, rgba(126, 91, 230, 0.24), transparent 62%),
    #0b0d12;
  color: #fff; text-align: center;
}
.vt_boot[hidden] { display: none; }
.vt_boot_in { width: 100%; max-width: 430px; }

.vt_boot_spin {
  display: block; width: 52px; height: 52px; margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cyan);
  animation: vtSpin 0.9s linear infinite;
}
.vt_boot_spin[hidden] { display: none; }
@keyframes vtSpin { to { transform: rotate(360deg); } }

.vt_boot_warn {
  display: inline-grid; place-items: center;
  width: 66px; height: 66px; margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, #8b95a1, #4e5968);
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}
.vt_boot_warn[hidden] { display: none; }

.vt_boot_k {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.48);
}
.vt_boot_k span { color: var(--cyan); }

.vt_boot_t {
  margin-top: 12px; font-size: 1.32rem; font-weight: 800;
  letter-spacing: -0.03em; word-break: keep-all; line-height: 1.45;
}
.vt_boot_d {
  margin-top: 10px; font-size: 0.9rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.6); word-break: keep-all;
}
.vt_boot_d b { color: #fff; font-weight: 800; letter-spacing: 0.06em; }

.vt_boot_acts {
  margin-top: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.vt_boot_acts[hidden] { display: none; }

/* 어두운 배경 위의 보조 버튼 */
.vt_boot_acts .vt_btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  text-decoration: none;
}
.vt_boot_acts .vt_btn--ghost:active { background: rgba(255, 255, 255, 0.16); }

.vt_boot_note {
  margin-top: 18px; font-size: 0.78rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.4); word-break: keep-all;
}

@media (prefers-reduced-motion: reduce) {
  .vt_boot_spin { animation-duration: 2.6s; }
}
