:root {
  --bg: #2b2b33;
  --tile: #3a3a45;
  --tile-fg: #a0a0ad;
  --ink: #12121a;
  --accent: #f5c518;
  --fg: #f7f7f2;
  --muted: #a7a7b2;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.4;
  word-break: keep-all;
}

a { text-decoration: none; color: inherit; }

img.px { image-rendering: pixelated; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* 하위 페이지 상단 뒤로가기 */
.back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: .5rem;
  background: var(--tile);
  color: var(--muted);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: .875rem;
  font-weight: 700;
  transition: transform .08s ease, box-shadow .08s ease;
}
.back img { width: 18px; height: 18px; display: block; }
.back:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.back:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
