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

:root {
  --bg:        #121215;
  --bg2:       #1E1E20;
  --bg3:       #2A2A2E;
  --pink:      #E082A5;
  --pink-dim:  rgba(224, 130, 165, 0.15);
  --text:      #C7CAD0;
  --text-muted:#838391;
  --text-dim:  #555560;
  --border:    rgba(255,255,255,0.07);
  --radius:    14px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,18,21,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo span { font-size: 16px; font-weight: 700; color: #fff; }
.header-sub { font-size: 13px; color: var(--text-muted); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.list-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.list-count { font-size: 12px; color: var(--text-dim); }

#game-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }

.game-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg2);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.game-item:hover { background: var(--bg3); }

.game-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }

.game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.game-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-tags { display: flex; gap: 4px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-dim);
  border-radius: 5px;
  padding: 2px 7px;
}
.game-date { font-size: 11px; color: var(--text-dim); }

.game-stats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.skeleton-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg2);
}
.sk { background: var(--bg3); border-radius: 6px; animation: shimmer 1.4s infinite; }
.sk-thumb { width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0; }
.sk-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sk-line { height: 11px; }
.sk-line.w70 { width: 70%; }
.sk-line.w50 { width: 50%; }
.sk-line.w30 { width: 30%; }
@keyframes shimmer {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}

.error-state {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg2);
}

.cta-wrap { text-align: center; margin-top: 32px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #E082A5, #c45f8a);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(224,130,165,0.35);
}
