/* rules.9shot.net: 9shot Rules website. Tokens follow design/GIAO-DIEN-9SHOT.md (EG-161, EG-169). */
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #0B2A5B;
  --hero: #0B2A5B;
  --swing: #64B32E;
  --swing-hover: #57A026;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --surface: #FFFFFF;
  --tint: #EEF2F8;
  --ink: #0E1A2B;
  --muted: #5A6678;
  --line: #E2E7EE;
  --link: #0B2A5B;
  --icon: #0B2A5B;
  --icon-bg: #E8F3DF;
  --number: #276814;
  --brand: #0B2A5B;
  --radius-sheet: 24px;
  --radius-card: 14px;
  --wrap: 1080px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero: #0F2F66;
    --bg: #08142B;
    --bg-soft: #0C1A36;
    --surface: #11203D;
    --tint: #11203D;
    --ink: #F2F5FA;
    --muted: #A9B6CC;
    --line: #22355A;
    --link: #8FB8FF;
    --icon: #A9DB82;
    --icon-bg: #17305A;
    --number: #A9DB82;
    --brand: #FFFFFF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  /* Long words and the email address wrap instead of overflowing at 320px or large text. */
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 10; transform: translateY(-200%);
  background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { transform: none; }

/* Flat Fairway Navy header (9shot: no gradient, no contour pattern); white text is 13.9:1 on #0B2A5B. */
.hero { color: #fff; background: var(--hero); }
.hero a { color: #fff; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 112px; height: auto; }
.brand-learn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; line-height: 1;
}
.brand-learn::before { content: ""; width: 2px; height: 26px; background: currentColor; opacity: .85; }
.topnav { display: none; gap: 24px; font-size: .9375rem; font-weight: 600; }
.topnav a, .lang { text-decoration: none; }
.topnav a:hover, .lang:hover { text-decoration: underline; }
.lang svg { width: 18px; height: 18px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; font-size: .9375rem; font-weight: 600;
}
@media (min-width: 760px) { .topnav { display: flex; } }
.lang { white-space: nowrap; }

/* Language menu: a <details> list of the five languages, no script needed. */
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 7px; height: 7px; margin: -3px 2px 0 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.lang-menu[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: var(--radius-card);
  background: var(--surface); box-shadow: 0 12px 32px rgba(4, 16, 40, .25);
}
.hero .lang-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.hero .lang-menu a:hover { background: var(--bg-soft); }
.hero .lang-menu a[aria-current] { color: var(--icon); background: var(--icon-bg); }
@media (max-width: 419px) {
  .topbar { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 92px; }
  .brand-learn { font-size: 1.125rem; gap: 10px; }
  .brand-learn::before { height: 21px; }
  .lang { padding: 0 12px; font-size: .875rem; gap: 6px; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.25rem, 1.35rem + 4.2vw, 4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.lead { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); margin-top: 20px; max-width: 34em; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.status-note { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.status-note::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--swing); box-shadow: 0 0 0 4px rgba(100, 179, 46, .3);
}
.play-badge img { height: 60px; width: auto; }
.status a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  font-size: .9375rem; font-weight: 600;
}
.net-note { font-size: .9375rem; margin-top: 12px; max-width: 36em; }

.shot { margin: 0; }
.phone {
  width: min(300px, 76vw); margin: 0 auto; border-radius: 40px; overflow: hidden;
  border: 10px solid #0E1A2B; background: #0E1A2B;
  box-shadow: 0 18px 40px rgba(4, 16, 40, .25);
}
.phone img { width: 100%; aspect-ratio: 720 / 1396; border-radius: 30px; }
.shot figcaption { text-align: center; color: var(--muted); font-size: .9375rem; margin-top: 16px; }

/* The phone hangs out of the navy header into the first white sheet. */
.hero .shot { position: relative; z-index: 2; margin-bottom: -170px; }
.sheet {
  position: relative; z-index: 1; margin-top: calc(-1 * var(--radius-sheet));
  background: var(--bg); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 232px 0 72px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 56px; }
  .hero-text { padding-bottom: 96px; align-self: center; }
  .hero .shot { margin-bottom: -150px; align-self: end; }
  .phone { width: 300px; }
  .sheet { padding-top: 64px; }
  .sheet .section-head { max-width: calc(100% - 380px); min-height: 140px; }
}

section { scroll-margin-top: 24px; }
.section-head h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { border-top: 2px solid var(--line); padding-top: 20px; }
.step-num { font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 2.75rem; line-height: 1; color: var(--number); }
.steps h3 { font-size: 1.25rem; margin: 14px 0 6px; }
.steps p { color: var(--muted); }
.after-steps { margin-top: 36px; max-width: 46em; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.features { background: var(--bg-soft); padding: 72px 0; }
.feature-row { display: grid; gap: 40px; margin-top: 48px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--icon);
}
.icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1875rem; margin: 10px 0 6px; }
.feature p { color: var(--muted); }
.feature .caution { color: var(--ink); font-weight: 600; margin-top: 8px; font-size: 1rem; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; margin-top: 64px; }
  .feature-row.reverse { grid-template-columns: minmax(0, 1fr) 320px; }
  .feature-row.reverse .shot { order: 2; }
}

.privacy { padding: 72px 0; }
.privacy-panel {
  background: var(--tint); border-radius: var(--radius-sheet); padding: 32px 24px;
  display: grid; gap: 20px;
}
.privacy-panel .icon { background: var(--surface); }
.privacy-panel h2 { margin-bottom: 12px; }
.privacy-panel p { max-width: 46em; }
.privacy-panel p + p { margin-top: 12px; }
.privacy-panel p:last-child { margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--swing); color: var(--navy); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--swing-hover); text-decoration: none; }
.button svg { width: 20px; height: 20px; }
@media (min-width: 760px) {
  .privacy-panel { grid-template-columns: 48px 1fr; gap: 24px; padding: 48px; }
}

.rules-note { padding: 0 0 56px; }
.rules-note p {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 1rem; max-width: 52em;
}
.rules-note svg { width: 24px; height: 24px; color: var(--icon); margin-top: 1px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9375rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); margin-right: auto; text-decoration: none; }
.footer-brand img { width: 92px; }
.footer-brand .brand-learn { font-size: 1.125rem; }
.footer-brand .brand-learn::before { height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink); display: inline-flex; min-height: 44px; align-items: center; }
.footer-langs { width: 100%; }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; padding: 0; margin: 0; }
.footer-langs a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-meta a { color: var(--muted); }

/* Inner pages: privacy, support, 404. */
.page-hero .page-title { padding-top: 32px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; font-size: 1.125rem; max-width: 36em; }
.page {
  position: relative; margin-top: calc(-1 * var(--radius-sheet)); background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: 40px 0 64px;
}
.prose { max-width: 720px; }
.prose h2 { font-size: 1.375rem; margin: 40px 0 10px; scroll-margin-top: 24px; }
.prose p { margin: 10px 0; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.updated { color: var(--muted); font-size: .9375rem; }
.toc {
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 20px; margin: 24px 0 8px;
  font-size: 1rem;
}
.toc h2 { font-size: .9375rem; margin: 0 0 6px; font-family: var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }

.contact { display: grid; gap: 16px; padding-bottom: 8px; }
.contact .button { justify-self: start; max-width: 100%; font-size: 1.0625rem; padding-top: 10px; padding-bottom: 10px; }
.contact .button span { min-width: 0; overflow-wrap: anywhere; }
.contact p { color: var(--muted); max-width: 40em; }
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 6px;
  border-right: 2.5px solid var(--icon); border-bottom: 2.5px solid var(--icon); transform: rotate(45deg) translateY(-3px);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .hero, .page-hero { background: none; color: #000; }
  .hero a, .page-hero a { color: #000; }
  .topnav, .lang, .skip { display: none; }
}

/* Korean and Japanese: system CJK fonts (Barlow only draws the Latin letters and numbers). No negative
   letter-spacing or tight leading on CJK headings; Korean wraps between words (as in the app, EG-49). */
html[lang="ko"] {
  --font: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  line-break: strict;
}
html:is([lang="ko"], [lang="ja"]) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
html:is([lang="ko"], [lang="ja"]) .eyebrow { letter-spacing: .04em; }
