:root {
  color-scheme: light;
  --ink: #0f2038;
  --muted: #58697d;
  --line: #dce3e8;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --blue: #129ee3;
  --blue-dark: #0877ae;
  --orange: #ff5608;
  --green: #2fb862;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }

.site-header { position: relative; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 23px; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
nav a { color: #293a4d; font-size: 15px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue-dark); }
.language-switch { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.language-switch a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; color: #374b60; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.language-switch a[aria-current="page"] { background: var(--ink); color: white; }
.language-switch a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }
.hero a:focus-visible { outline-color: white; }

.hero { position: relative; min-height: min(780px, calc(100svh - 28px)); overflow: hidden; background: var(--blue); color: white; }
.hero-inner { width: min(1180px, calc(100% - 48px)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: 24px; padding: 50px 0 108px; }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero h1 { font-size: 112px; line-height: .88; font-weight: 900; }
.hero-line { margin-top: 30px; color: white; font-size: 40px; line-height: 1.22; font-weight: 800; }
.hero-description { max-width: 520px; margin-top: 22px; color: #e8f7ff; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.hero-actions .text-link { margin-top: 0; }
.store-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; background: white; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.store-link:hover { background: var(--soft); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link.light { color: white; }
.hero-character { position: relative; z-index: 1; width: min(610px, 52vw); justify-self: end; filter: drop-shadow(0 26px 24px rgba(1, 62, 94, .18)); }
.hero-preview { position: absolute; z-index: 3; left: 50%; bottom: -190px; width: min(780px, 75vw); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 34px; pointer-events: none; }
.hero-preview img { height: auto; border: 7px solid #101820; border-radius: 52px; box-shadow: 0 16px 30px rgba(18, 45, 65, .22); }

.play-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 118px 0 132px; }
.section-heading { max-width: 900px; margin: 0 auto 58px; text-align: center; }
.section-heading h2 { font-size: 44px; line-height: 1.25; }
.section-heading p { margin-top: 18px; }
.game-flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px; list-style: none; }
.game-flow li { min-width: 0; }
.step-heading { display: flex; align-items: center; gap: 12px; }
.step-heading span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: 18px; font-weight: 900; }
.step-heading h3 { font-size: 21px; }
.game-flow li > p { min-height: 58px; margin: 12px 0 24px 50px; font-size: 15px; }
.phone-frame img { width: 100%; height: auto; }
.phone-frame { overflow: hidden; border: 7px solid #111820; border-radius: 48px; background: var(--soft); box-shadow: 0 18px 32px rgba(22, 43, 61, .14); }

.feature-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.feature-grid { width: min(1080px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); padding: 80px 0; }
.feature-grid article { padding: 0 46px; text-align: center; }
.feature-grid article + article { border-left: 1px solid var(--line); }
.feature-grid strong, .feature-grid img { width: 112px; height: 112px; margin: 0 auto 22px; }
.feature-grid strong { display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-size: 48px; line-height: 1; }
.feature-grid article:nth-child(2) img { background: var(--orange); }
.feature-grid article:nth-child(3) img { background: var(--green); }
.feature-grid img { border-radius: 50%; object-fit: contain; }
.feature-grid h2 { font-size: 21px; }
.feature-grid p { margin-top: 12px; font-size: 15px; }

.privacy-note { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0; display: flex; align-items: center; justify-content: space-between; gap: 54px; }
.privacy-note h2 { font-size: 30px; }
.privacy-note p { max-width: 640px; margin-top: 12px; }
.privacy-note .text-link { flex: 0 0 auto; margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { width: min(1180px, calc(100% - 48px)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 14px 38px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { color: #374b60; font-size: 14px; font-weight: 700; }
.footer-inner > p { grid-column: 1 / -1; font-size: 13px; }
.site-footer.compact .footer-inner { min-height: 120px; grid-template-columns: auto 1fr auto; align-items: center; }
.site-footer.compact .footer-links { justify-content: center; }
.site-footer.compact p { grid-column: auto; }

.document-main, .legal-main { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.document-hero { min-height: 390px; display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.document-hero h1, .legal-header h1 { font-size: 64px; line-height: 1.12; }
.document-hero p { margin-top: 18px; font-size: 20px; }
.document-hero img { width: 300px; justify-self: end; }
.support-contact { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.support-contact h2, .faq > h2 { font-size: 28px; }
.support-contact p { max-width: 660px; margin-top: 10px; }
.primary-button { display: inline-flex; min-height: 50px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 22px; border-radius: 8px; background: var(--blue); color: white; font-weight: 800; text-decoration: none; }
.primary-button:hover { background: var(--blue-dark); }
.faq { padding: 72px 0 110px; }
.faq > h2 { margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 42px 24px 0; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 22px; color: var(--blue-dark); font-size: 24px; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 780px; padding: 0 42px 24px 0; }

.legal-header { padding: 88px 0 58px; border-bottom: 1px solid var(--line); }
.legal-header > p:first-child { margin-bottom: 16px; color: var(--blue-dark); font-size: 14px; font-weight: 800; }
.legal-header .lede { max-width: 760px; margin-top: 24px; font-size: 20px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 80px; padding: 68px 0 120px; }
.legal-layout aside { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.legal-layout aside a { color: #506276; font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-layout aside a:hover { color: var(--blue-dark); }
.legal-copy section { scroll-margin-top: 28px; }
.legal-copy section + section { margin-top: 52px; }
.legal-copy h2 { margin-bottom: 14px; font-size: 24px; }
.legal-copy a { color: var(--blue-dark); }

@media (max-width: 820px) {
  .header-inner { width: min(100% - 32px, 680px); min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; padding: 12px 0; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; height: 38px; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: 20px; margin-left: 0; }
  nav a { display: inline-flex; min-height: 36px; align-items: center; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .language-switch a { padding: 0 9px; font-size: 12px; }
  .hero { min-height: 620px; }
  .hero-inner { width: min(100% - 36px, 620px); min-height: 620px; grid-template-columns: 1fr; align-content: start; gap: 0; padding: 26px 0 150px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero h1 { font-size: 68px; }
  .hero-line { margin-top: 16px; font-size: 30px; }
  .hero-description { margin: 12px auto 0; font-size: 17px; line-height: 1.55; }
  .hero-actions { justify-content: center; margin-top: 18px; }
  .hero-actions .text-link { margin-top: 0; }
  .hero-character { width: min(270px, 66vw); justify-self: center; margin-top: 4px; }
  .hero-preview { bottom: -136px; width: min(540px, 86vw); gap: 14px; }
  .hero-preview img { border-width: 4px; border-radius: 30px; }
  .play-section { width: min(100% - 36px, 560px); padding: 94px 0; }
  .section-heading { margin-bottom: 44px; }
  .game-flow { grid-template-columns: 1fr; gap: 72px; }
  .game-flow li { max-width: 380px; margin: 0 auto; }
  .feature-grid { width: min(100% - 36px, 560px); grid-template-columns: 1fr; padding: 28px 0; }
  .feature-grid article { padding: 46px 0; }
  .feature-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .privacy-note { width: min(100% - 36px, 560px); flex-direction: column; align-items: flex-start; padding: 66px 0; }
  .footer-inner, .site-footer.compact .footer-inner { width: min(100% - 36px, 560px); min-height: auto; grid-template-columns: 1fr; padding: 42px 0; }
  .site-footer.compact .footer-links { justify-content: flex-start; }
  .footer-inner > p, .site-footer.compact p { grid-column: 1; }
  .document-main, .legal-main { width: min(100% - 36px, 620px); }
  .document-hero { min-height: 420px; grid-template-columns: 1fr 190px; gap: 12px; }
  .document-hero img { width: 210px; }
  .support-contact { align-items: flex-start; flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-layout aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .document-hero h1, .legal-header h1 { font-size: 48px; }
}

@media (max-width: 520px) {
  p { font-size: 16px; }
  nav { gap: 14px; }
  nav a { font-size: 14px; }
  .hero { min-height: 560px; }
  .hero-inner { padding-top: 26px; }
  .hero h1 { font-size: 58px; }
  .hero-line { font-size: 27px; }
  .hero-description { font-size: 17px; }
  .hero-character { width: min(250px, 66vw); }
  .hero-preview { bottom: -92px; }
  .section-heading h2 { font-size: 30px; }
  .phone-frame { border-width: 5px; border-radius: 38px; }
  .document-hero { min-height: 500px; grid-template-columns: 1fr; padding: 62px 0 0; overflow: hidden; text-align: center; }
  .document-hero img { width: 240px; justify-self: center; margin-bottom: -34px; }
  .support-contact { padding: 48px 0; }
  .primary-button { width: 100%; }
  .legal-header { padding-top: 62px; }
  .legal-layout { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
