@font-face {
  font-family: "Black Han Sans";
  src: url("/fonts/BlackHanSans-Regular.ttf") format("truetype");
  font-display: block;
}

:root {
  --navy: #0e1033;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --sky: #3ec5ff;
  --teal: #14a3a0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #05060f;
  overflow: hidden;
  font-family: "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  color: #fff;
  cursor: none;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  background: #05060f;
  overflow: hidden;
}

#cam {
  position: absolute;
  left: 960px;
  top: 0;
  width: 960px;
  height: 1080px;
  object-fit: cover;
  transform: scaleX(-1);
  background: #000;
}

#pixi, #pixi canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
}

/* 첫 화면 (소리를 켜려면 한 번 눌러야 함) */
#gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(14, 16, 51, .55), rgba(14, 16, 51, .75)),
    url("/assets/bg_home.jpg") center / cover no-repeat,
    #0e1033;
  z-index: 10;
  cursor: default;
  transition: opacity .4s ease;
}
#gate.gone { opacity: 0; pointer-events: none; }
.gate-logo {
  width: min(720px, 86vw);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: gate-bob 1.2s ease-in-out infinite;
}
@keyframes gate-bob { 50% { transform: translateY(-10px) scale(1.02); } }
.gate-box { text-align: center; padding: 16px; }
.gate-title {
  font-family: "Black Han Sans";
  font-size: clamp(56px, 10vw, 140px);
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gate-sub { font-size: 22px; opacity: .8; margin: 8px 0 28px; }
#gate-btn {
  font-family: "Black Han Sans";
  font-size: 34px;
  padding: 18px 48px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 8px 0 #c79a00;
  cursor: pointer;
}
#gate-btn:disabled { opacity: .4; cursor: wait; }
.gate-hint { margin-top: 28px; font-size: 15px; opacity: .6; }

/* 스태프 메뉴 */
#staff {
  position: fixed;
  right: 24px;
  top: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 20px 22px;
  background: rgba(14, 16, 51, .96);
  border: 2px solid var(--sky);
  border-radius: 18px;
  z-index: 20;
  cursor: default;
  font-size: 16px;
}
#staff h2 { margin: 0 0 12px; font-family: "Black Han Sans"; font-weight: 400; }
#staff label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
#staff label.row { justify-content: flex-start; }
#staff input[type=number], #staff select { width: 150px; font-size: 16px; padding: 4px 6px; }
.staff-status { margin: 12px 0; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 14px; line-height: 1.5; }
.staff-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-btns button { flex: 1 1 45%; font-size: 15px; padding: 8px; border-radius: 10px; border: 0; cursor: pointer; }
