/* PebbleLogics site — one stylesheet for every page */
:root {
  --bg: #ffffff;
  --fg: #1c2027;
  --muted: #5b6470;
  --line: #e4e7eb;
  --card: #f5f6f8;
  --accent: #f27a2a;
  --accent-ink: #b9520c;
  --hero-ink: #ffffff;
  --head-font: "Poppins", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --fg: #e8ebef;
    --muted: #a2aab5;
    --line: #2a2f37;
    --card: #1a1e24;
    --accent-ink: #ffa463;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 var(--body-font);
}
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1120px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 600 19px/1 var(--head-font); letter-spacing: 0.2px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* landing */
.landing .site-header { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; z-index: 2; }
.landing .site-header .brand, .landing .site-header .nav a { color: var(--hero-ink); }
.landing .site-header .nav a { opacity: 0.85; }
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--hero-ink);
  background: #0e1013 url("hero.jpg") center 42% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.55) 0%, rgba(10, 11, 14, 0.15) 35%, rgba(10, 11, 14, 0.85) 100%);
}
.hero .wrap { position: relative; padding-bottom: 56px; padding-top: 120px; }
.eyebrow { font: 600 13px/1 var(--head-font); letter-spacing: 2px; text-transform: uppercase; color: #ffb47e; margin: 0 0 14px; }
.hero h1 { font: 700 clamp(32px, 6vw, 56px)/1.1 var(--head-font); margin: 0 0 16px; max-width: 14em; }
.hero p { font-size: clamp(16px, 2.2vw, 19px); margin: 0; max-width: 34em; opacity: 0.92; }
@media (max-width: 640px) {
  .hero { background-image: url("hero-m.jpg"); min-height: 86vh; }
}

.section { padding: 64px 0; }
.section h2 { font: 700 28px/1.25 var(--head-font); margin: 0 0 18px; }
.game-card { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; }
.game-card .body { padding: 22px 22px 26px; }
.game-card h3 { font: 600 21px/1.3 var(--head-font); margin: 0 0 8px; }
.pill { display: inline-block; font: 600 12px/1 var(--head-font); letter-spacing: 0.6px; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: #fff; margin-bottom: 12px; }
.feature-list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

/* policy pages */
.doc { padding: 40px 0 72px; }
.doc h1 { font: 700 clamp(28px, 5vw, 38px)/1.2 var(--head-font); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font: 600 21px/1.35 var(--head-font); margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font: 600 17px/1.4 var(--head-font); margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--card); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { position: relative; padding-left: 44px; margin: 14px 0; }
.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px/30px var(--head-font); text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.lang-switch { font-size: 14px; }
