/* Shared style for static guide pages (/guide, /pricing, /safety, /faq, /games/*).
   Palette mirrors the /web landing (web/index.html :root) so the pages read as one site. */
:root {
  --bg: #FDF6F8;
  --surface: #fff;
  --sunken: #F6EAEF;
  --ink: #2A1F32;
  --body: #5B4D66;
  --muted: #A79BB3;
  --line: #EEDCE4;
  --coral: #CC6F92;
  --coral-deep: #B85A7C;
  --rose: #D98CAA;
  --mint: #9370AF;
  --champagne: #FDEFF3;
  --shadow: 0 28px 70px rgba(42,31,50,.13);
  --shadow-soft: 0 12px 28px rgba(42,31,50,.08);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at 0% 8%, rgba(217,140,170,.18), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgba(253,239,243,.8), transparent 26rem),
    var(--bg);
}
a { color: var(--coral-deep); }
.shell { width: min(1080px, 100% - 32px); margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(253,246,248,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--coral), var(--rose)); box-shadow: 0 10px 20px rgba(204,111,146,.24); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--body); text-decoration: none; font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.nav a:hover, .nav a:focus-visible { background: var(--champagne); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--coral-deep); background: var(--champagne); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--coral), var(--coral-deep)); box-shadow: 0 14px 28px rgba(204,111,146,.28); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(204,111,146,.34); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible, .rel-card:focus-visible { outline: 3px solid rgba(147,112,175,.5); outline-offset: 2px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; box-shadow: none; }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: center; padding: 64px 0 40px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 900; letter-spacing: .16em; color: var(--mint); }
h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; letter-spacing: -.035em; font-weight: 900; }
.lead { margin: 18px 0 0; max-width: 34em; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-art { justify-self: center; width: min(240px, 60vw); aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center; background: linear-gradient(160deg, #fff, var(--champagne)); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero-art img { width: 62%; height: auto; transform: rotate(3deg); }

.body { display: grid; gap: 18px; padding-bottom: 24px; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow-soft); }
.block:nth-child(odd) { border-radius: 28px 28px 28px 10px; }
.block h2 { margin: 0 0 12px; font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -.025em; line-height: 1.3; }
.block p { margin: 0 0 12px; color: var(--body); font-size: 16px; }
.block p:last-child { margin-bottom: 0; }
.block ul { margin: 0; padding-left: 20px; color: var(--body); display: grid; gap: 8px; }
.block strong { color: var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; border-radius: 18px; background: var(--bg); color: var(--body); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-weight: 900; color: var(--coral); font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--champagne); font-size: 13px; color: var(--body); }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { font-weight: 800; color: var(--ink); white-space: nowrap; }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 800; font-size: 16px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 20px; color: var(--coral); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }

.related { padding: 28px 0 8px; }
.related h2, .final h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.02em; margin: 0 0 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rel-card { display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.rel-card strong { font-size: 16px; }
.rel-card span { font-size: 13.5px; color: var(--body); }

.final { margin-top: 28px; padding: 40px clamp(22px, 4vw, 48px); border-radius: 32px; color: #fff; background: linear-gradient(135deg, var(--coral-deep), var(--mint)); box-shadow: var(--shadow); }
.final p { margin: 0 0 20px; opacity: .92; }
.final .btn { background: #fff; color: var(--coral-deep); box-shadow: none; }

.foot { padding: 36px 0 48px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.foot-links a { color: var(--body); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--coral-deep); }
.biz-info { margin: 0 0 6px; line-height: 1.7; }
.biz-info a { color: inherit; }
.copy { margin: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding: 36px 0 24px; gap: 24px; }
  .hero-art { width: 150px; border-radius: 30px; order: -1; justify-self: start; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .rel-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
