:root {
  color-scheme: light;
  --bg: #E9ECFB;
  --panel: #F7F8FE;
  --panel-2: #DCE2F5;
  --border: #C8D0EC;
  --accent: #2D47E0;
  --accent-2: #6F86FF;
  --accent-dark: #18205C;
  --text: #141A3A;
  --muted: #525B80;
  --success: #13915C;
  --warn: #B4761C;
  --error: #D33A3F;
  --white: #FFFFFF;
  --clear: transparent;
  --stage-top: #F4F6FE;
  --stage-mid: #C9D3F7;
  --tint-1: #E3E8FD;
  --tint-violet: #DAD6FB;
  --glow-violet: rgba(128,120,255,.40);
  --glow-cobalt: rgba(45,71,224,.42);
  --shadow-accent-10: rgba(45,71,224,.10);
  --shadow-accent-12: rgba(45,71,224,.12);
  --shadow-accent-28: rgba(45,71,224,.28);
  --shadow-ink-10: rgba(24,32,92,.10);
  --shadow-ink-24: rgba(24,32,92,.24);
  --hi-white-80: rgba(255,255,255,.80);
  --hi-white-55: rgba(255,255,255,.55);
  --hi-white-30: rgba(255,255,255,.30);
  --hi-white-16: rgba(255,255,255,.16);
  --glass: rgba(247,248,254,.60);
  --chip-glass: rgba(247,248,254,.72);
  --success-soft: rgba(19,145,92,.12);
  --accent-soft: rgba(45,71,224,.09);
  --flag-red: #D8343B;
  --flag-white: #FFFFFF;
  --flag-navy: #1F2E78;
  --flag-blue: #2A4C9B;
  --flag-edge: rgba(20,26,58,.18);
  --font-display: 'Inter','Noto Sans SC','Noto Sans JP','Noto Sans KR','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-body: 'Inter','Noto Sans SC','Noto Sans JP','Noto Sans KR','PingFang SC','Hiragino Sans','Microsoft YaHei',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;
  --fs-micro: 10.5px;
  --fs-tiny: 11px;
  --fs-caption: 11.5px;
  --fs-xs: 12px;
  --fs-small: 12.5px;
  --fs-sm: 13px;
  --fs-detail: 13.5px;
  --fs-ui: 14px;
  --fs-nav: 14.5px;
  --fs-label: 15px;
  --fs-mobile-body: 15.5px;
  --fs-body: 16px;
  --fs-lead: 17px;
  --fs-h3: 18px;
  --fs-brand: 19px;
  --fs-subtitle: 20px;
  --fs-h2-min: 26px;
  --fs-stat: 28px;
  --fs-h2: 36px;
  --fs-mobile-h1: 40px;
  --fs-h1-min: 52px;
  --fs-h1: 72px;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --r-pill: 999px;
  --r-round: 50%;
  --r-flag: 3px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-card: 12px;
  --r-float: 14px;
  --r-win: 20px;
  --r-stage-mobile: 24px;
  --r-stage: 32px;
  --gutter: 32px;
  --wrap-width: 1376px;
  --reading-width: 840px;
  --section-space: 80px;
  --anchor-offset: 88px;
  --toc-offset: 16px;
  --toc-clearance: 104px;
  --ease: .2s ease;
  --panel-shadow: 0 6px 18px var(--shadow-accent-10),inset 0 1px 0 var(--hi-white-80);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--anchor-offset); scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body { font-family: var(--font-body); font-size: var(--fs-body); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button, summary, select { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(var(--fs-h1-min),5vw,var(--fs-h1)); font-weight: var(--weight-heavy); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(var(--fs-h2-min),3vw,var(--fs-h2)); font-weight: var(--weight-heavy); line-height: 1.25; }
h3 { font-size: var(--fs-h3); line-height: 1.4; font-weight: var(--weight-bold); }
code { font-family: var(--font-mono); font-size: .9em; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--panel-2); border-radius: var(--r-card); }
pre code { overflow-wrap: normal; white-space: pre; }
.wrap { width: 100%; max-width: var(--wrap-width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.reading-wrap { max-width: var(--reading-width); margin-inline: auto; }
.stack { display: grid; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid-2 > *, .grid-3 > *, .stack > * { min-width: 0; }
.no-break { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.kicker { color: var(--accent); font-size: var(--fs-sm); font-weight: var(--weight-bold); letter-spacing: .04em; }
.lead { font-size: var(--fs-subtitle); line-height: 1.7; color: var(--muted); }
.section-head { display: grid; gap: 16px; margin-bottom: 32px; max-width: 900px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; color: var(--accent); font-weight: var(--weight-semi); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.prose { line-height: 1.9; min-width: 0; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose blockquote { margin-block: 20px; }
.prose h2 { margin-top: 48px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { padding-left: 24px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose li + li { margin-top: 8px; }
.card, .panel { background: var(--white); border: 1px solid var(--panel-2); border-radius: var(--r-card); box-shadow: var(--panel-shadow); min-width: 0; }
.panel { padding: 28px; background: var(--panel); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 60; background: var(--accent-dark); color: var(--white); padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
.skip:focus { top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; min-width: 168px; padding: 12px 30px; border-radius: var(--r-pill); font-size: var(--fs-body); font-weight: var(--weight-bold); letter-spacing: .01em; transition: transform var(--ease),box-shadow var(--ease),background-color var(--ease); text-align: center; }
.btn svg { width: 18px; height: 18px; }
.btn.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 12px 26px var(--shadow-accent-28),inset 0 1px 0 var(--hi-white-30); }
.btn-primary:hover, .btn-primary.is-hover { transform: translateY(-1px); box-shadow: 0 16px 32px var(--shadow-accent-28),inset 0 1px 0 var(--hi-white-30); }
.btn-ghost, .btn-secondary { border: 1.5px solid var(--accent-dark); color: var(--accent-dark); background: var(--clear); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--hi-white-55); }
.btn-secondary { flex-shrink: 0; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-small { min-height: 40px; min-width: 0; padding: 8px 20px; font-size: var(--fs-ui); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.announce { background: var(--panel-2); color: var(--text); font-size: var(--fs-sm); }
.announce-in { display: flex; align-items: center; justify-content: center; min-height: 36px; }
.announce-link { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-weight: var(--weight-medium); }
.announce-link svg { width: 16px; height: 16px; transition: transform var(--ease); }
.announce-link:hover { color: var(--accent); }
.announce-link:hover svg { transform: translateX(3px); }
.site-head { position: relative; z-index: 40; background: var(--panel); border-bottom: 1px solid var(--border); }
.head-in { position: relative; display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 30px; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-en { font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: var(--fs-brand); letter-spacing: -.02em; color: var(--text); }
.main-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: var(--fs-nav); font-weight: var(--weight-medium); color: var(--muted); white-space: nowrap; transition: background-color var(--ease),color var(--ease); }
.nav-link:hover { background: var(--panel-2); color: var(--text); }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--text); font-weight: var(--weight-semi); background: var(--panel-2); }
.nav-link svg { width: 14px; height: 14px; }
.nav-more, .language-picker { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; top: calc(100% + 10px); left: 0; display: none; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 340px; padding: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 18px 40px var(--shadow-accent-12),0 2px 6px var(--shadow-ink-10); }
.nav-more.is-open .more-menu, .nav-more[open] .more-menu { display: grid; }
.more-label { font-size: var(--fs-caption); color: var(--muted); padding: 6px 10px 4px; letter-spacing: .04em; }
.more-group a { display: flex; align-items: center; min-height: 40px; padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--fs-ui); font-weight: var(--weight-medium); }
.more-group a:hover, .more-group a[aria-current] { background: var(--panel-2); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; min-width: 44px; width: auto; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-ui); color: var(--muted); }
.lang span { white-space: nowrap; }
.lang:hover { background: var(--panel-2); color: var(--text); }
.lang svg { width: 16px; height: 16px; }
.lang .chev { width: 12px; height: 12px; }
.language-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--panel-shadow); }
.language-menu a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); font-size: var(--fs-ui); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--panel-2); }
.btn-login { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 22px; border-radius: var(--r-pill); background: var(--accent-dark); color: var(--white); font-size: var(--fs-ui); font-weight: var(--weight-semi); box-shadow: inset 0 1px 0 var(--hi-white-16); transition: transform var(--ease),box-shadow var(--ease); white-space: nowrap; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 18px var(--shadow-ink-24); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-pill); }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.site-footer { background: var(--panel-2); border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { max-width: 340px; color: var(--muted); font-size: var(--fs-ui); line-height: 1.8; margin-top: 20px; }
.footer-title { font-size: var(--fs-ui); font-weight: var(--weight-bold); margin-bottom: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; }
.footer-links a, .footer-langs a, .footer-legal a { display: inline-flex; align-items: center; min-height: 32px; padding-block: 4px; font-size: var(--fs-sm); color: var(--muted); }
.footer-links a:hover, .footer-langs a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-langs a[aria-current] { color: var(--text); font-weight: var(--weight-semi); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.reveal { transition: opacity .6s ease,transform .6s ease; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }
#server-status { display: block; position: static; min-height: 28px; max-width: 100%; overflow: hidden; margin-top: 16px; margin-bottom: 16px; color: var(--muted); font-size: var(--fs-sm); }
#server-status + * { margin-top: 16px; }
.decor-zone { position: relative; isolation: isolate; overflow-x: clip; }
.decor-glow { position: absolute; z-index: -1; inset: 0 0 20% 40%; max-width: 100%; border-radius: var(--r-round); background: radial-gradient(closest-side,var(--glow-violet),var(--clear)); filter: blur(48px); pointer-events: none; }
@media (max-width: 1100px) {
  .head-in { gap: 20px; }
  .nav-link { padding-inline: 10px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .head-actions { margin-left: auto; }
  .mobile-drawer { position: absolute; z-index: 41; top: 100%; left: 0; right: 0; background: var(--panel); padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--border); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 40px var(--shadow-accent-12); }
  .mobile-drawer:not([hidden]) { display: block; }
  .mobile-drawer a { display: flex; width: 100%; align-items: center; min-height: 44px; padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--fs-label); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--panel-2); color: var(--text); }
  .drawer-label { padding: 20px 16px 8px; color: var(--muted); font-size: var(--fs-xs); border-top: 1px solid var(--border); margin-top: 12px; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --section-space: 48px; }
  h1 { font-size: clamp(var(--fs-stat),8vw,var(--fs-mobile-h1)); line-height: 1.15; }
  .head-in { min-height: 60px; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
  .head-actions { gap: 4px; margin-left: auto; }
  .lang { padding-inline: 8px; }
  .lang > span { display: none; }
  .btn-login { padding-inline: 16px; }
  .announce-in { padding-top: 8px; padding-bottom: 8px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .panel { padding: 20px; }
  .lead { font-size: var(--fs-h3); }
}
@media (max-width: 640px) {
  .no-break { white-space: normal; }
  .tilt, .tilt-decor, .float-glass, .float-pill { transform: none; }
  .decor-glow { max-width: 100%; }
  .btn { min-width: 0; padding-inline: 24px; }
  .brand { gap: 8px; }
  .brand-en { font-size: var(--fs-h3); }
  .brand-mark { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
  .reveal, .reveal.pending { opacity: 1; transform: none; }
}