/* Wink.Gravity 공통 스타일 — 로비 + 스테이지 셸.
   게임 내부 스타일은 각 게임이 자기 접두어(class="<id>-…")로 격리한다. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #12141a;
  color: #e8e8ee;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

/* ---------- 로비 ---------- */

#lobby { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }

.lobby-head h1 { font-size: 28px; letter-spacing: 1px; }
.lobby-head .sub { margin-top: 6px; color: #9aa0b0; font-size: 14px; }

.game-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.game-card {
  background: #1c2030;
  border: 1px solid #2c3248;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.game-card:hover { border-color: #5b8dee; transform: translateY(-2px); }
.game-card:disabled { cursor: default; opacity: .55; }
.game-card:disabled:hover { border-color: #2c3248; transform: none; }

.game-card .g-title { font-size: 17px; font-weight: bold; }
.game-card .g-tag { margin-top: 6px; font-size: 13px; color: #9aa0b0; line-height: 1.5; }
.game-card .g-status {
  display: inline-block; margin-top: 10px;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.game-card .g-status.playable { background: #1f4d2e; color: #7fe0a0; }
.game-card .g-status.idea     { background: #4d3a1f; color: #e0c07f; }

.empty-note { margin-top: 40px; color: #6a7080; text-align: center; }

/* ---------- 스테이지 ---------- */

#stage-wrap { height: 100%; display: flex; flex-direction: column; }

.stage-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: #1c2030; border-bottom: 1px solid #2c3248;
  flex: 0 0 auto;
}
.stage-bar button {
  background: #2c3248; color: #e8e8ee; border: 0; border-radius: 8px;
  padding: 6px 14px; font: inherit; cursor: pointer;
}
.stage-bar button:hover { background: #3a4260; }
#stage-title { font-weight: bold; }

#stage { flex: 1 1 auto; position: relative; overflow: hidden; }
#stage canvas { display: block; }
