:root {
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  background: #f9fafb;
  color: #111827;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.game-shell {
  width: min(100%, 1040px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 컨셉 리스킨: 사내 업무툴 느낌 HUD */
.hud {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hud__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hud__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud__group.grow {
  flex: 1;
  min-width: 220px;
}

.hud__label {
  font-size: 12px;
  color: #6b7280;
}

.hud__value {
  font-weight: 600;
}

.bar {
  width: 140px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar--xp {
  width: 180px;
}

.bar__fill {
  height: 100%;
  background: #9ca3af;
  width: 50%;
  transition: width 0.2s ease;
}

.bar--xp .bar__fill {
  background: #60a5fa;
}

.canvas-wrap {
  position: relative;
  background: #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #f9fafb;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 250, 251, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay--show {
  opacity: 1;
  pointer-events: auto;
}

.overlay__panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  width: min(90%, 420px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.overlay__panel--wide {
  width: min(92%, 720px);
}

.overlay h1,
.overlay h2 {
  margin-bottom: 12px;
}

.overlay p {
  color: #6b7280;
  margin-bottom: 16px;
}

.overlay__subtitle {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}

.btn {
  background: #111827;
  color: #f9fafb;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* 컨셉 리스킨: Slack/Notion 느낌 카드 */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.card p {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .hud__row {
    gap: 12px;
  }

  .bar,
  .bar--xp {
    width: 120px;
  }
}
