/* FiveColorGames — 사이트 공통 스타일. 색은 로고(남색 프리즘 + 다섯 색 빛)에서 가져왔다. */
:root {
  --ink: #03263f;
  --text: #24384b;
  --muted: #5d6f81;
  --bg: #ffffff;
  --paper: #fff8ea;
  --surface: #ffffff;
  --line: #e4e8ee;
  --link: #146c9e;
  --btn-bg: #03263f;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(3, 38, 63, .04), 0 8px 24px rgba(3, 38, 63, .06);

  --red: #d93a36;
  --yellow: #ffba2a;
  --green: #338e53;
  --blue: #1c89c6;
  --indigo: #2e4990;
  --spectrum: linear-gradient(90deg,
    var(--red) 0 20%, var(--yellow) 20% 40%, var(--green) 40% 60%,
    var(--blue) 60% 80%, var(--indigo) 80% 100%);

  --container: 1080px;
  --gutter: 24px;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f8;
    --text: #c9d4df;
    --muted: #8fa1b3;
    --bg: #0b1622;
    --paper: #102131;
    --surface: #112030;
    --line: #213445;
    --link: #6cbbe8;
    --btn-bg: #eef3f8;
    --btn-text: #03263f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-text);
}
.skip-link:focus { top: 12px; }

/* 맨 위 다섯 색 띠 */
.spectrum { height: 4px; background: var(--spectrum); }

/* 머리글 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.brand, .footer-brand, .hero-art { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 44px; height: auto; }
.brand .light { font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--paper); text-decoration: none; }
.nav .lang { margin-left: 8px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .nav .section-link { display: none; }
}

/* 첫 화면 */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--spectrum); }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
.hero .lead { margin: 22px 0 0; font-size: clamp(17px, 2vw, 19px); color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { justify-self: end; width: 100%; max-width: 400px; }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { order: -1; justify-self: start; max-width: 200px; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; line-height: 1;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn[aria-disabled="true"] { cursor: default; color: var(--muted); background: transparent; border-color: var(--line); border-style: dashed; }
.btn[aria-disabled="true"]:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* 구획 */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.section-head p { margin: 12px 0 0; color: var(--muted); }
.section-tight { padding-top: 0; }
.section + .section-tight { border-top: 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-tight { padding-top: 0; } .section-head { margin-bottom: 32px; } }

/* 게임 카드 */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .games { grid-template-columns: 1fr; } }

.game {
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.game-top { display: flex; align-items: center; gap: 18px; }
.game-icon { width: 88px; height: 88px; border-radius: 22px; flex: none; box-shadow: 0 0 0 1px rgba(3, 38, 63, .08); }
.game h3 { font-size: 22px; font-weight: 800; }
.game .genre { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.live::before { background: var(--green); }
.badge.soon::before { background: var(--yellow); }
.game .desc { margin: 20px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border-radius: 8px; background: var(--paper); color: var(--text); font-size: 14px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
@media (max-width: 480px) { .game { padding: 22px; } .game-icon { width: 72px; height: 72px; border-radius: 18px; } }

/* 회사 소개 */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.about-text p { margin: 0 0 16px; }
.principles { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.principles li { position: relative; padding: 2px 0 2px 22px; }
.principles li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--c, var(--blue)); }
.principles strong { display: block; color: var(--ink); font-size: 17px; }
.principles span { color: var(--muted); font-size: 15.5px; }

.company-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.company-card .logo-wrap { background: #fff8ea; padding: 28px 40px; }
.company-card .logo-wrap img { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.facts { margin: 0; padding: 8px 24px 16px; }
.facts div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.facts dd a { font-size: 15.5px; }

/* 문의 */
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.contact h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.contact p { margin: 8px 0 0; color: var(--muted); }
.contact .email { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { .contact { padding: 28px 22px; } }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14.5px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.footer-brand svg { width: 34px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { padding: 2px 0; }
.footer-links a { color: var(--text); }
.copyright { margin: 28px 0 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.notfound .bar { width: 120px; height: 6px; margin: 24px auto; border-radius: 3px; background: var(--spectrum); }
.notfound h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.notfound p { margin: 0 0 8px; }
.notfound .hero-actions { justify-content: center; }
