html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #2b2118;
  color: #f2e6d8;
  font-family: "Malgun Gothic", sans-serif;
  overflow: hidden;
}

#canvasWrap {
  position: absolute;
  inset: 0;
}

#hud {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgb(0 0 0 / 45%);
  transform: translateX(-50%);
  user-select: none;
}

#turnLabel {
  min-width: 110px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

#seatLabel {
  font-size: 13px;
  opacity: 0.75;
}

#status {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 12px;
  opacity: 0.6;
  user-select: none;
}

/* 대기실 */
#lobby {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 55%);
  user-select: none;
}

.lobbyPanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
  padding: 26px 30px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 16px;
  background: #3a2c20;
}

.lobbyTitle {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.seatRow {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgb(255 255 255 / 8%);
  font-size: 14px;
}

/* 내 좌석 강조 */
.seatRow.mySeat {
  background: rgb(220 179 92 / 30%);
  font-weight: bold;
}

#lobbyHint {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.65;
  text-align: center;
}

/* 로컬에서 열었을 때만 나오는 안내 */
#localNotice {
  display: none;
  max-width: 280px;
  font-size: 11px;
  line-height: 1.5;
  color: #dcb35c;
  opacity: 0.8;
  text-align: center;
  word-break: break-all;
}

.lobbyButtons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

#buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  background: rgb(255 255 255 / 22%);
}

.btn:active {
  transform: translateY(1px);
}

/* 강조 버튼 */
.btn.primary {
  border-color: transparent;
  background: #dcb35c;
  color: #2b2118;
  font-weight: bold;
}

.btn.primary:hover {
  background: #e9c476;
}
