/* CI colors: yellow from Ptn_Logo_001, charcoal from Img_Logo */
:root {
  --ci-yellow: #f2b421;
  --ci-charcoal: #282828;
  --bg: #181818;
  --surface: var(--ci-charcoal);
  --surface-2: #323232;
  --border: #333333;
  --fg: #ededed;
  --muted: #a3a3a3;
  --accent: var(--ci-yellow);
  --accent-ink: var(--ci-charcoal);
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Full-width bands, content held to a wide but readable track */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(24, 24, 24, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; }
/* Charcoal logo flipped light so it reads on the dark header */
.logo img { height: 36px; width: auto; filter: invert(1); opacity: .9; }
.nav { display: flex; gap: 24px; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }
.site-header .wrap { gap: 16px; }
.site-header .nav { margin-left: auto; }
.language-switch { display: flex; gap: 4px; flex-shrink: 0; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.language-switch a { padding: 3px 10px; border-radius: 999px; color: var(--muted); font-size: .8rem; }
.language-switch a:hover { color: var(--fg); text-decoration: none; }
.language-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Index */
.hero { background: var(--ci-yellow) url("/assets/pattern.png") center / cover; color: var(--ci-charcoal); }
.hero .wrap { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero h1 { margin: 0; line-height: 0; }
.hero img { height: clamp(88px, 12vw, 140px); width: auto; flex-shrink: 0; }
.hero p { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 600; margin: 0; max-width: 720px; }
.section { padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--border); }
.section h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 20px; font-weight: 600; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 20px; }
.game {
  display: flex; gap: 20px; align-items: center; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.game img { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; }
.game h3 { margin: 0 0 4px; font-size: 1.25rem; }
.game p { margin: 0 0 12px; color: var(--muted); }
.game .legal-links { display: flex; gap: 12px; margin-top: 12px; font-size: .85rem; }
.game .legal-links a { color: var(--muted); }
.game .legal-links a:hover { color: var(--fg); }
.store-links {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px;
}
.store-links .btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 152px; min-height: 42px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem;
}
.store-links .btn:hover { text-decoration: none; filter: brightness(1.08); }
.contact { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600; }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer p { margin: 0; }

/* Legal pages: sticky table of contents beside the text on wide screens */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .9rem; }
.toc strong { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0 0 24px; padding: 0; }
.toc li a { display: block; padding: 4px 0; color: var(--muted); }
.toc li a:hover { color: var(--fg); text-decoration: none; }
.doc { max-width: 820px; }
.doc article + article { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--border); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.doc p, .doc li { color: #cfd3d8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.lang { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin: 0 0 32px; }
.lang a { padding: 6px 16px; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.lang a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; padding-top: 32px; }
  .toc { display: none; }
  .nav { gap: 16px; font-size: .85rem; }
}
@media (max-width: 560px) {
  .site-header .wrap { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .site-header .nav { gap: 12px; }
  .language-switch { margin-left: auto; }
  .game .legal-links { flex-wrap: wrap; }
  .store-links .btn { flex: 1 1 152px; }
  .hero .wrap { flex-direction: column; text-align: center; }
}
