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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: #fafafa;
  color: #111;
  font-family: 'Pretendard Variable', Pretendard, -apple-system,
    BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-feature-settings: 'ss01', 'ss02';
  letter-spacing: -0.01em;
  line-height: 1.5;
}

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

/* ---- Language toggle ---- */
.lang {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 2px;
  z-index: 10;
}

.lang button {
  background: transparent;
  border: none;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #aaa;
  cursor: pointer;
  border-radius: 4px;
  transition: color 120ms ease, background 120ms ease;
}

.lang button:hover {
  color: #111;
}

.lang button[aria-current="true"] {
  color: #111;
  background: #ececec;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

/* ---- Brand header ---- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 80px;
}

.brand-mark {
  width: 64px;
  height: auto;
  display: block;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

/* ---- Section label ---- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ---- Game card ---- */
.games {
  display: flex;
  flex-direction: column;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #ececec;
  transition: background 120ms ease;
}

.game-card:last-of-type {
  border-bottom: 1px solid #ececec;
}

.game-card:hover {
  background: #f3f3f3;
  margin: 0 -12px;
  padding: 20px 12px;
}

.game-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.game-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.game-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.game-desc {
  font-size: 14px;
  color: #666;
}

.game-arrow {
  color: #bbb;
  font-size: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 80px;
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #555;
}

.site-footer a:hover {
  color: #111;
}

.site-footer .dot {
  color: #ccc;
}

/* ---- Dark mode (system preference) ---- */
@media (prefers-color-scheme: dark) {
  body {
    background: #0e0e10;
    color: #f1f1f3;
  }
  .brand-tag {
    color: #888;
  }
  .section-label {
    color: #777;
  }
  .game-card {
    border-top-color: #1f1f23;
  }
  .game-card:last-of-type {
    border-bottom-color: #1f1f23;
  }
  .game-card:hover {
    background: #18181b;
  }
  .game-card img {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 2px 6px rgba(0, 0, 0, 0.25);
  }
  .game-desc {
    color: #999;
  }
  .game-arrow {
    color: #555;
  }
  .site-footer {
    color: #888;
  }
  .site-footer a {
    color: #aaa;
  }
  .site-footer a:hover {
    color: #fff;
  }
  .site-footer .dot {
    color: #444;
  }
  /* logo는 검은 사슴이라 다크모드에서 안 보임 — invert */
  .brand-mark {
    filter: invert(1);
  }
  .lang button {
    color: #777;
  }
  .lang button:hover {
    color: #fff;
  }
  .lang button[aria-current="true"] {
    color: #fff;
    background: #1f1f23;
  }
}
