/* 초대코드 화면. 시세판 배경 사진을 어둡게 깔고 그 위 반투명 칸에 글자를 둔다(승인 시안 D). 줄표·말줄임표·그라데이션·장식 금지. 글자 크기는 폰 기준. */
:root { --muted: #a1a1a6; --faint: #85858b; --text: #f5f5f7; --pre: #d9b45a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 검은 바탕은 html에 둔다. 사진을 못 받으면 예전처럼 검은 화면이다. body는 바탕이 없어야 사진(z-index -1)을 가리지 않는다. */
html { background: #000; }
html, body { min-height: 100%; color: var(--text); font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { position: relative; display: flex; min-height: 100vh; min-height: 100dvh; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left)); }

/* 사진: 가로 화면은 넓은 사진, 세로 화면(폰)은 긴 사진을 조금 키워 아래쪽에 맞춘다. 시세판보다 어둡게. */
.photo { position: fixed; inset: 0; z-index: -1; background: url(bg-wide.jpg) center / cover no-repeat; filter: brightness(.55) saturate(.9); }
@media (max-aspect-ratio: 1/1) { .photo { background-image: url(bg-tall.jpg); background-size: auto 140%; background-position: center 100%; filter: brightness(.48) saturate(.85); } }

.gate {
  width: 100%; max-width: 420px; margin: auto; padding: 40px 36px 36px;
  background: rgba(0, 0, 0, .40); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 20px;
}
@media (max-width: 500px) { .gate { padding: 32px 22px 26px; } }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; }
form { display: flex; flex-direction: column; margin-top: 28px; }
label { font-size: 18px; font-weight: 500; color: var(--muted); }

input {
  margin-top: 14px; height: 60px; width: 100%; padding: 0 18px;
  border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14);
  font: inherit; font-size: 26px; font-weight: 600; letter-spacing: 6px; text-indent: 6px; text-transform: uppercase; text-align: center;
  color: #fff; caret-color: var(--text); outline: none; -webkit-appearance: none; appearance: none;
}
input:focus { border-color: rgba(255, 255, 255, .34); }
input::selection { background: rgba(255, 255, 255, .3); color: #fff; }

.msg { min-height: 24px; margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--pre); }

button {
  margin-top: 12px; height: 56px; width: 100%; border: 0; border-radius: 12px;
  background: #f5f5f7; color: #000; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { background: rgba(255, 255, 255, .18); color: var(--muted); cursor: default; }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
