html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0d0b1f;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
  color: #fff6e8;
}

/* 1280×720 고정 논리 화면을 창 크기에 맞춰 비율 유지 확대/축소 (game.js의 fit()) */
#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
}

#game {
  display: block;
  width: 1280px;
  height: 720px;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 9, 30, 0.74);
  animation: fade-in 0.35s ease-out;
}
.hidden { display: none !important; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card {
  width: 660px;
  box-sizing: border-box;
  padding: 34px 44px 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, #3a2350 0%, #241838 100%);
  border: 2px solid rgba(255, 207, 122, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #ffb37a;
}

h1, h2 {
  margin: 6px 0 14px;
  font-size: 54px;
  line-height: 1.15;
  color: #ffd45c;
  text-shadow: 0 4px 0 #b4471f, 0 8px 18px rgba(0, 0, 0, 0.5);
}
h2 { font-size: 48px; }

.chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 4px 0 16px;
  font-size: 20px;
  color: #ffcf8a;
}
.chain figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  font-size: 14px;
  color: #f3dcc0;
}
.chain img { width: 52px; height: 52px; object-fit: contain; }

.howto {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
  font-size: 18px;
  line-height: 1.85;
}
.howto li::before { content: '· '; color: #ffb37a; }
.howto b { color: #ffd45c; }
.howto b.red { color: #ff6b6b; }

.btn {
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  padding: 14px 56px;
  border: none;
  border-radius: 999px;
  color: #3a1606;
  background: linear-gradient(180deg, #ffd45c 0%, #ff9a3c 100%);
  box-shadow: 0 6px 0 #b4471f, 0 12px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b4471f, 0 6px 14px rgba(0, 0, 0, 0.4); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 16px;
}
.final span { font-size: 18px; color: #f3dcc0; }
.final strong { font-size: 72px; line-height: 1.1; color: #fff; }
.final em {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #ff5c8a;
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
}
.stats div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.stats dt { font-size: 15px; color: #f3dcc0; }
.stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; color: #ffd45c; }
