:root {
  --bg: #0e0f13;
  --surface: #181a20;
  --surface2: #1f222a;
  --border: #2c2f3a;
  --text: #eceef2;
  --muted: #9aa0ac;
  --accent: #7f77dd;
  --accent2: #5dcaa5;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 19, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon i { font-size: 17px; color: #fff; }

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: inline-block;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text);
  background: var(--surface2);
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 30px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .12s;
  text-decoration: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ─── Sections ─── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.section-title i { color: var(--accent2); font-size: 22px; }
.section-meta { font-size: 13px; color: var(--muted); }

/* ─── Game Grid ─── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(127, 119, 221, .12);
}

.card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb i { font-size: 58px; }

.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 7px; }

.card-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: rgba(127, 119, 221, .15);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  min-height: 38px;
}

.card-btns { display: flex; gap: 8px; }
.card-btns .btn { flex: 1; justify-content: center; }

/* ─── Guide List ─── */
.guide-list { display: flex; flex-direction: column; gap: 12px; }

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color .14s, transform .14s;
}
.guide-card:hover { border-color: var(--accent); transform: translateX(4px); }

.guide-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-icon i { font-size: 26px; }

.guide-info { flex: 1; }
.guide-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.guide-info p { font-size: 13px; color: var(--muted); }

.guide-arrow { color: var(--border); font-size: 20px; flex-shrink: 0; transition: color .15s; }
.guide-card:hover .guide-arrow { color: var(--accent); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); padding: 4px 10px; border-radius: 6px; transition: color .15s, background .15s; }
.footer-links a:hover { color: var(--text); background: var(--surface2); }
.footer-links .sep { color: var(--border); }

/* ─── Game Player Overlay ─── */
#player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
  flex-direction: column;
}
#player.open { display: flex; }

.pbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0a0b0e;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
}
.pbar .ptitle { font-size: 15px; font-weight: 700; }
.pbar .peng { font-size: 12px; color: var(--muted); }
.pbar .pfs { margin-left: auto; }
#frame { flex: 1; width: 100%; border: 0; background: #000; }

/* ─── Page Content (about / contact / privacy) ─── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-wrap .page-date { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.page-wrap h2 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.page-wrap p { color: #d0d3da; line-height: 1.85; margin-bottom: 14px; }
.page-wrap a { color: var(--accent); }
.page-wrap a:hover { text-decoration: underline; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.contact-card .label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contact-card .val { font-size: 16px; font-weight: 600; }
.contact-card .val a { color: var(--accent); text-decoration: none; }
.contact-card .val a:hover { text-decoration: underline; }

/* ─── Guide Page ─── */
.guide-page-wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  transition: color .15s;
}
.guide-back:hover { color: var(--text); }

.guide-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.guide-header-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-header-icon i { font-size: 34px; }
.guide-header h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.guide-header .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-header .tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(127, 119, 221, .15);
  color: var(--accent);
}
.guide-header .tag.green {
  background: rgba(93, 202, 165, .15);
  color: var(--accent2);
}

.game-embed-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.game-embed-wrap iframe { display: block; width: 100%; height: 440px; border: 0; }

.guide-article h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.guide-article p { color: #d0d3da; line-height: 1.85; margin-bottom: 14px; }
.guide-article ul, .guide-article ol { color: #d0d3da; padding-left: 20px; margin-bottom: 16px; }
.guide-article li { margin-bottom: 9px; line-height: 1.7; }
.guide-article strong { color: var(--text); }

.tip-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #c8ccd4;
  line-height: 1.75;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 48px 20px 36px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .guide-card { padding: 14px 16px; }
  .guide-icon { width: 44px; height: 44px; }
  .game-embed-wrap iframe { height: 300px; }
  .guide-header { gap: 14px; }
  .guide-header-icon { width: 54px; height: 54px; }
}
