/* 픽셀 디자인 오버라이드: 둥근 모서리·그라데이션·그림자를 없애고
   하드 엣지와 고정 팔레트로 화면 전체를 픽셀 스타일로 만든다. */
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Noto+Sans+KR:wght@400;700&display=swap');

* {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

html,
body {
  font-family: 'DotGothic16', 'Noto Sans KR', monospace !important;
  font-size: 16px;
  color: #e8e2d8;
  background: #0a0a0f;
}

#game-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ---------- 공통 화면 ---------- */
.screen {
  background: #0a0a0f !important;
}

.screen-inner {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  padding: 2rem 1.8rem !important;
}

.eyebrow {
  color: #c9a227 !important;
  letter-spacing: 0.28em !important;
}

h1 {
  color: #c9a227 !important;
  font-size: clamp(2.4rem, 8vw, 3.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.tagline {
  color: #8f8a80 !important;
}

.controls-note {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #b7b0a4 !important;
}

kbd {
  background: #2a2a3a !important;
  border: 2px solid #4a4a55 !important;
  border-bottom-width: 2px !important;
  color: #e8e2d8 !important;
}

/* ---------- 버튼 ---------- */
.primary-button {
  background: #c9a227 !important;
  color: #0a0a0f !important;
  border: 2px solid #ffd700 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.primary-button:hover {
  background: #ffd700 !important;
  border-color: #ffffff !important;
}

.primary-button:active {
  transform: translateY(1px) !important;
}

.primary-button:focus-visible {
  outline: 2px solid #ffd700 !important;
  outline-offset: 2px !important;
}

/* ---------- 증강 카드 ---------- */
.skill-card {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.skill-card:hover {
  border-color: #c9a227 !important;
  background: #2a2a3a !important;
}

.skill-card:focus-visible {
  outline: 2px solid #ffd700 !important;
  outline-offset: 2px !important;
}

.skill-card-name {
  color: #c9a227 !important;
}

.skill-card-desc {
  color: #8f8a80 !important;
}

.skill-card-tag {
  color: #8f8a80 !important;
}

/* ---------- 장비창 ---------- */
.equip-subtitle {
  color: #c9a227 !important;
}

.skill-item {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.skill-item:hover {
  border-color: #c9a227 !important;
  background: #2a2a3a !important;
}

.skill-item.equipped {
  border-color: #00e5ff !important;
}

.skill-item-name {
  color: #c9a227 !important;
}

.skill-item-desc {
  color: #8f8a80 !important;
}

.skill-item-tag {
  color: #8f8a80 !important;
}

.skill-item.equipped .skill-item-tag {
  color: #00e5ff !important;
}

.equip-slot {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.equip-slot.filled {
  border-color: #c9a227 !important;
}

.equip-slot.filled:hover {
  border-color: #ffd700 !important;
  background: #2a2a3a !important;
}

.equip-slot:disabled {
  color: #6f6a63 !important;
}

.equip-slot-key {
  background: #2a2a3a !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.equip-slot-name {
  color: #e8e2d8 !important;
}

.equip-empty {
  color: #8f8a80 !important;
}

/* ---------- HUD ---------- */
.floor-indicator {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #c9a227 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.skill-bar {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  padding: 4px !important;
}

.skill-slot {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.skill-slot.filled {
  border-color: #c9a227 !important;
}

.skill-slot-key {
  color: #e8e2d8 !important;
}

.skill-slot-name {
  color: #c9c2b6 !important;
}

.skill-slot-cd {
  background: rgba(0, 0, 0, 0.72) !important;
}

.stats-panel {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.stats-title {
  color: #c9a227 !important;
}

.stat-name {
  color: #b7b0a4 !important;
}

.stat-bar {
  background: #2a2a3a !important;
  border: 1px solid #4a4a55 !important;
}

.stat-fill {
  background: #c9a227 !important;
}

/* 체력은 금색 스탯 막대와 구분되는 붉은 막대를 쓴다. */
.health-row {
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #4a4a55 !important;
}

.stat-fill.health-fill {
  background: #c2453f !important;
}

.stat-value {
  color: #e8e2d8 !important;
}

.hud-button {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.hud-button:hover {
  border-color: #c9a227 !important;
  background: #2a2a3a !important;
}

.hud-button:focus-visible {
  outline: 2px solid #ffd700 !important;
  outline-offset: 2px !important;
}

.health-hud {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

/* 글자도 부드럽게 번지지 않게 안티에일리어싱을 끈다. */
html,
body {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

/* 픽셀 그림은 확대해도 부드럽게 보간하지 않는다. */
canvas,
img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ---------- 스킬 수치(피해·쿨타임) ---------- */
.skill-stat {
  color: #b7b0a4 !important;
}

.skill-stat.physical {
  color: #ff9a4d !important;
}

.skill-stat.magic {
  color: #8fe3ff !important;
}

.skill-stat.cooldown {
  color: #8f8a80 !important;
}

.skill-slot-cdtext {
  color: #ffffff !important;
}

.skill-stat.speed {
  color: #8f8a80 !important;
}

/* ---------- 미궁 코인 · 상점 ---------- */
.coin-indicator {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #ffd700 !important;
}

.coin-icon {
  background: #c9a227 !important;
  border: 2px solid #ffd700 !important;
}

.shop-coins {
  color: #ffd700 !important;
}

.shop-item {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
  color: #e8e2d8 !important;
}

.shop-item:hover {
  border-color: #c9a227 !important;
  background: #2a2a3a !important;
}

.shop-item:disabled {
  color: #6f6a63 !important;
}

.shop-item-icon {
  color: #ffd700 !important;
}

.shop-item-name {
  color: #c9a227 !important;
}

.shop-item-desc {
  color: #8f8a80 !important;
}

.shop-item-price {
  color: #ffd700 !important;
}

/* ---------- 사용형 유물 · 유물 도감 ---------- */
.skill-item.relic-use {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
}

.skill-item.relic-use:hover:not(:disabled) {
  border-color: #00e5ff !important;
  background: #2a2a3a !important;
}

/* 장비창의 유물 인벤토리. 사용할 수 없는 유물도 흐려지지 않고 밝게 보이게 한다. */
.skill-item.relic-use:disabled {
  opacity: 1 !important;
  color: #f2e8c9 !important;
}

.skill-item.relic-use .skill-item-name {
  color: #ffd700 !important;
}

.skill-item.relic-use .skill-item-desc {
  color: #d8d1c4 !important;
}

.skill-item.relic-use .skill-item-tag {
  color: #b7b0a4 !important;
}

.relic-status {
  color: #00e5ff !important;
}

.codex-count {
  color: #ffd700 !important;
}

.codex-card {
  background: #1a1a2e !important;
  border: 2px solid #4a4a55 !important;
}

.codex-card.unknown {
  border-color: #2a2a3a !important;
}

.codex-icon {
  color: #8fe3ff !important;
}

.codex-name {
  color: #c9a227 !important;
}

.codex-tag {
  color: #8f8a80 !important;
}

.codex-desc {
  color: #8f8a80 !important;
}

/* ---------- 유물 등급 ---------- */
.rarity-badge {
  justify-self: start;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.02rem 0.3rem;
  border: 2px solid currentColor !important;
  color: #b7b0a4 !important;
}

.rarity-badge.rarity-common,
.codex-tag.rarity-common {
  color: #b7b0a4 !important;
}

.rarity-badge.rarity-rare,
.codex-tag.rarity-rare {
  color: #6ec6ff !important;
}

.rarity-badge.rarity-epic,
.codex-tag.rarity-epic {
  color: #b98bff !important;
}

.rarity-badge.rarity-legendary,
.codex-tag.rarity-legendary {
  color: #ffb038 !important;
}

.shop-item.rarity-common,
.codex-card.rarity-common,
.skill-item.relic-use.rarity-common {
  border-color: #6a6a78 !important;
}

.shop-item.rarity-rare,
.codex-card.rarity-rare,
.skill-item.relic-use.rarity-rare {
  border-color: #6ec6ff !important;
}

.shop-item.rarity-epic,
.codex-card.rarity-epic,
.skill-item.relic-use.rarity-epic {
  border-color: #b98bff !important;
}

.shop-item.rarity-legendary,
.codex-card.rarity-legendary,
.skill-item.relic-use.rarity-legendary {
  border-color: #ffb038 !important;
}

.codex-card.rarity-rare .codex-name {
  color: #6ec6ff !important;
}

.codex-card.rarity-epic .codex-name {
  color: #b98bff !important;
}

.codex-card.rarity-legendary .codex-name {
  color: #ffb038 !important;
}
