/* 공통 골격 — 기존 각 페이지에 인라인 복제되어 있던 스타일을 추출한 것 */
:root {
  --bg: #0f1115;
  --panel: #181b22;
  --line: #2a2f3a;
  --text: #e8eaf0;
  --dim: #8b91a0;
  --accent: #ffd447;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.level-tag {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}
h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}
.puzzle {
  width: 100%;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
}
.puzzle svg { width: 100%; height: auto; display: block; }
form { display: flex; gap: 10px; width: 100%; max-width: 380px; }
input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  text-align: center;
  padding: 12px;
  outline: none;
}
input:focus { border-color: var(--accent); }
button {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.msg { margin-top: 16px; height: 20px; font-size: 14px; color: var(--dim); }
.shake { animation: shake .4s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* 레벨 로비 (도달자 명단) — L2 방 custom_css의 .name/.names와 충돌하지 않도록 roster-* 사용 */
.lobby { text-align: center; max-width: 640px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.roster-label { color: var(--dim); font-size: 13px; letter-spacing: 1px; }
.roster {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; width: 100%;
}
.roster-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 14px; background: #1f232c; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.roster-chip.you { border-color: var(--accent); color: var(--accent); }
.roster-more { color: var(--dim); font-size: 12px; min-height: 14px; }
.lobby button { margin-top: 6px; }

/* 명예의 전당 (CLEAR 화면 하단, 탈출 순서) */
#hall { margin-top: 32px; text-align: center; }
.hall-title { color: var(--dim); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
#hall-list { list-style-position: inside; padding: 0; color: var(--text); font-size: 15px; line-height: 2; }
#hall-list li.you { color: var(--accent); font-weight: 700; }
