@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-feature-settings: "ss05", "tnum";
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #3182f6;
  outline-offset: 2px;
}

/* 부서 색 — common.js 의 deptIndex() 가 0~9 를 붙인다 */
[data-d="0"] { --dept: #f04452; }
[data-d="1"] { --dept: #fe9800; }
[data-d="2"] { --dept: #f5b800; }
[data-d="3"] { --dept: #15b886; }
[data-d="4"] { --dept: #18a5a5; }
[data-d="5"] { --dept: #3182f6; }
[data-d="6"] { --dept: #7b61ff; }
[data-d="7"] { --dept: #e64a9b; }
[data-d="8"] { --dept: #8b95a1; }
[data-d="9"] { --dept: #a0703c; }

/* 비밀번호 화면 (MC · 스튜디오) */
.gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0e0f12;
  color: #fff;
  z-index: 50;
}

.gate form {
  width: min(340px, 100%);
  display: grid;
  gap: 14px;
  text-align: center;
}

.gate h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.gate p {
  margin: 0 0 10px;
  color: #8b95a1;
  font-size: 15px;
}

.gate input {
  height: 56px;
  border-radius: 16px;
  border: 1px solid #2a2d34;
  background: #17191e;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.3em;
  outline: none;
}

.gate input:focus {
  border-color: #3182f6;
}

.gate button {
  height: 56px;
  border-radius: 16px;
  background: #3182f6;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.gate .err {
  min-height: 20px;
  color: #ff6b6b;
  font-size: 14px;
  margin: 0;
}
