:root {
  color-scheme: light;
  --bg: #F9F0E3;
  --bg-top: #FCF7EE;
  --bg-bottom: #F3E7D5;
  --panel: #FFFBF4;
  --panel-glass: rgba(255,251,244,.94);
  --panel2: #F1E6E2;
  --border: #E4D4C3;
  --border-soft: rgba(228,212,195,.72);
  --accent: #611A5E;
  --accent-2: #B0378C;
  --accent-dark: #3F0F3D;
  --text: #2A1C17;
  --muted: #6E5D53;
  --success: #2E8752;
  --success-ring: rgba(46,135,82,.16);
  --warn: #C4860F;
  --error: #C03A36;
  --on-accent: #FFFFFF;
  --land: #ECDCC6;
  --nav-glass: rgba(252,247,238,.74);
  --hl: rgba(255,255,255,.92);
  --hl-soft: rgba(255,255,255,.55);
  --hl-on-dark: rgba(255,255,255,.22);
  --tint-06: rgba(97,26,94,.06);
  --tint-10: rgba(97,26,94,.10);
  --tint-12: rgba(97,26,94,.12);
  --tint-18: rgba(97,26,94,.18);
  --tint-28: rgba(97,26,94,.28);
  --halo: rgba(176,55,140,.20);
  --ink-04: rgba(42,28,23,.04);
  --ink-08: rgba(42,28,23,.10);
  --veil: rgba(42,28,23,.42);
  --clear: transparent;
  --flag-hk: #DE2910;
  --flag-jp: #BC002D;
  --flag-sg: #EF3340;
  --flag-us-red: #B22234;
  --flag-us-blue: #3C3B6E;
  --flag-fr-blue: #0055A4;
  --flag-fr-red: #EF4135;
  --flag-white: #FFFFFF;
  --grad-brand: linear-gradient(100deg,var(--accent),var(--accent-2));
  --grad-paper: linear-gradient(180deg,var(--bg-top),var(--bg) 55%,var(--bg-bottom));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .11 0 0 0 0 .09 .1 0 0 0 -.02'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --font-display: 'Inter','Noto Sans SC','PingFang SC','Hiragino Sans','Hiragino Kaku Gothic ProN','Malgun Gothic','Apple SD Gothic Neo','Microsoft YaHei',system-ui,sans-serif;
  --font-body: 'Inter','Noto Sans SC','PingFang SC','Hiragino Sans','Yu Gothic','Malgun Gothic','Apple SD Gothic Neo','Microsoft YaHei',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono: 'JetBrains Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;
  --r-pill: 999px;
  --r-card: 24px;
  --r-panel: 28px;
  --r-stage: 32px;
  --r-menu: 20px;
  --r-small: 12px;
  --r-round: 50%;
  --gutter: 64px;
  --frame: 1440px;
  --head-h: 72px;
  --toc-h: 56px;
  --section-space: clamp(48px,7vw,96px);
  --display-size: clamp(52px,5vw,60px);
  --hero-size: 60px;
  --section-size: clamp(26px,3.5vw,36px);
  --shadow-card: inset 0 1px 0 var(--hl),0 1px 2px var(--ink-04),0 18px 36px -16px var(--tint-10),0 8px 18px -14px var(--tint-12);
  --shadow-pop: inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--border-soft),0 24px 48px -20px var(--tint-28);
}

*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 14px); scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.7 var(--font-body); color: var(--text); background: var(--bg) var(--grain); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); }
h1 { font-size: var(--display-size); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--section-size); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: 1.375rem; font-weight: 800; line-height: 1.3; text-wrap: pretty; }
small { font-size: .875rem; color: var(--muted); }
code,kbd,pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; margin-block: 1.25em; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-small); background: var(--panel2); }
pre code { white-space: pre; overflow-wrap: normal; }
.wrap,.reading-wrap { margin-inline: auto; padding-inline: var(--gutter); width: 100%; min-width: 0; }
.wrap { max-width: var(--frame); }
.reading-wrap { max-width: calc(47em + 2 * var(--gutter)); }
.sec { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.prose > * + * { margin-top: 1em; }
.prose p { max-width: 44em; }
.prose a:not(.btn,.float-cta) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.prose .toc-tabs a { text-decoration: none; }
.prose :is(ul,ol) { padding-inline-start: 1.5em; }
.prose .steps { list-style: none; padding-inline-start: 0; counter-reset: flight-step; }
.steps > li { counter-increment: flight-step; margin-block: 1em; }
.steps > li::before { content: counter(flight-step); display: inline-grid; place-items: center; min-width: 2em; height: 2em; margin-inline-end: .65em; border-radius: var(--r-pill); color: var(--accent); background: var(--panel2); font-family: var(--font-mono); }
.no-break,.price-value { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: var(--gutter); top: 8px; z-index: 100; padding: 8px 16px; border-radius: var(--r-pill); background: var(--panel); color: var(--accent-dark); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.accent-word { color: var(--accent); }
@supports (background-clip: text) {
  .accent-word { background-image: var(--grad-brand); background-clip: text; color: var(--clear); }
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-a { stop-color: var(--accent); }
.st-b { stop-color: var(--accent-2); }
.muted { color: var(--muted); }
.card { min-width: 0; padding: clamp(16px,3vw,32px); border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); }
.inset-panel { min-width: 0; padding: clamp(16px,3vw,32px); border-radius: var(--r-stage); background: var(--panel2); box-shadow: inset 0 1px 0 var(--hl-soft); }
.card > * + * { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 20px; }
.grid > *, .topbar-in > *, .footer-grid > *, .scene-detail > * { min-width: 0; }
.clip-decor,.footer-deck { position: relative; overflow-x: clip; }
.stripe-halo { position: absolute; inset-inline: 0; max-width: 100%; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; max-width: 100%; padding: 4px 14px 4px 11px; border-radius: var(--r-pill); background: var(--panel2); font: 600 13px/1.25 var(--font-body); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--border-soft); overflow: hidden; overflow-wrap: anywhere; }
.badge-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--success); box-shadow: 0 0 0 3px var(--success-ring); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r-pill); font: 700 16px/1 var(--font-body); white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { color: var(--on-accent); background-color: var(--accent); background-image: var(--grad-brand); box-shadow: inset 0 1px 0 var(--hl-on-dark),0 2px 4px var(--tint-12),0 16px 30px -12px var(--tint-28); }
.btn-ghost,.btn-secondary { color: var(--accent); background: var(--panel); box-shadow: inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--border),0 8px 16px -12px var(--tint-18); }
.btn-text { color: var(--accent); background: var(--clear); text-decoration: underline; text-underline-offset: .24em; }
@media (hover:hover) {
  .btn:not(:disabled,[aria-disabled="true"]):hover { transform: translateY(-1px); }
  .btn-primary:not(:disabled):hover { box-shadow: inset 0 1px 0 var(--hl-on-dark),0 2px 4px var(--tint-12),0 20px 36px -12px var(--tint-28); }
}
.btn:not(:disabled,[aria-disabled="true"]):active { transform: translateY(1px); }
.btn:disabled,.btn[aria-disabled="true"] { color: var(--muted); background: var(--panel2); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--border-soft); }

#site-header,.mast { position: sticky; top: 0; z-index: 70; }
.topbar { position: relative; z-index: 3; background: var(--nav-glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: inset 0 -1px var(--border-soft); }
.topbar-in { position: relative; height: var(--head-h); display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; font: 800 20px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; flex: none; }
.nav-main { flex: 1; min-width: 0; margin-left: clamp(12px,3.06vw,44px); }
.nav-main > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font: 600 15px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color .2s ease,color .2s ease; }
.nav-link:hover,.lang:hover { background: var(--panel2); color: var(--accent); }
.more > .nav-link { border: 0; background: var(--clear); color: inherit; }
.more > .nav-link:hover { background: var(--panel2); color: var(--accent); }
.nav-link[aria-current="page"],.more[data-current] > .nav-link { color: var(--accent); background: var(--panel); box-shadow: inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--border-soft); }
.nav-link svg { width: 12px; height: 12px; flex: none; }
.more,.lang-picker { position: relative; }
.preview-drawer summary { list-style: none; }
.preview-drawer summary::-webkit-details-marker { display: none; }
.more > .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.more-menu,.lang-menu { position: absolute; top: calc(100% + 10px); min-width: 200px; margin: 0; padding: 8px; list-style: none; background: var(--panel); border-radius: var(--r-menu); box-shadow: var(--shadow-pop); }
.more-menu { left: 0; z-index: 4; }
.lang-menu { right: 0; z-index: 5; }
.more-menu a,.lang-menu a { display: flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-small); font: 600 14px/1.2 var(--font-body); white-space: nowrap; }
.more-menu a:hover,.lang-menu a:hover,.lang-menu a[aria-current],.more-menu a[aria-current] { color: var(--accent); background: var(--panel2); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; width: auto; min-height: 40px; padding: 0 12px; border: 0; background: var(--clear); border-radius: var(--r-pill); font: 600 14px/1 var(--font-body); }
.lang svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lang-caret { font-size: 11px; color: var(--muted); }
.login { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px; border-radius: var(--r-pill); background: var(--panel2); color: var(--accent); font: 700 14px/1 var(--font-body); white-space: nowrap; box-shadow: inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--border-soft); }
.login:hover { box-shadow: inset 0 1px 0 var(--hl),inset 0 0 0 1px var(--border),0 8px 18px -12px var(--tint-28); }
.menu-toggle { display: none; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--border-soft); border-radius: var(--r-round); background: var(--panel); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle[aria-expanded="true"] { background: var(--panel2); color: var(--accent); }
.menu-veil { position: fixed; inset: var(--head-h) 0 0; z-index: 1; background: var(--veil); }
.menu-drawer { position: fixed; z-index: 2; inset: var(--head-h) 0 auto auto; width: min(100%,360px); height: calc(100dvh - var(--head-h)); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; padding: 12px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left)); background: var(--panel); box-shadow: var(--shadow-pop); }
.menu-drawer a { width: 100%; display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-small); font-weight: 600; }
.menu-drawer a:hover,.menu-drawer a[aria-current] { background: var(--panel2); color: var(--accent); }
.drawer-label { margin: 12px 14px 4px; color: var(--muted); font-size: .875rem; font-weight: 700; }
html.nav-open { overflow: hidden; }

.search-band { background: var(--panel2); border-block: 1px solid var(--border-soft); }
.search-band > .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-block: 14px; }
.search-band strong { color: var(--accent-dark); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .24em; }
.search-band a { color: var(--accent-dark); font-size: .875rem; }
.footer-deck { background: var(--accent-dark); color: var(--on-accent); }
.footer-deck::before,.footer-deck::after,.phone-stage::before,.phone-stage::after { content: ""; position: absolute; width: 22px; height: 22px; max-width: 100%; pointer-events: none; background: var(--grad-brand); clip-path: polygon(50% 0,60% 37%,100% 50%,60% 63%,50% 100%,40% 63%,0 50%,40% 37%); }
.footer-deck::before { inset: 10px auto auto 12px; }
.footer-deck::after { inset: auto 12px 10px auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,5fr) minmax(0,3fr); gap: 28px; padding-block: 48px 28px; }
.footer-intro p { max-width: 24em; margin-top: 8px; }
.footer-brand img { padding: 3px; background: var(--panel); border-radius: var(--r-small); }
.footer-grid h2 { margin-bottom: 8px; font: 800 1rem/1.3 var(--font-display); text-wrap: pretty; }
.footer-tail { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 16px 20px; box-shadow: inset 0 1px var(--hl-on-dark); font-size: .875rem; }
.footer-tail small { color: inherit; }

.reveal { transition: opacity .36s ease,transform .36s ease; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }
.motion-line-mask,.motion-line { display: block; }
.motion-line-mask { overflow: clip; }
#server-status { margin: 24px 0; padding: clamp(8px,2vw,20px); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }

@media (max-width:1180px) { :root { --gutter: 24px; } }
@media (max-width:1120px) {
  .nav-main { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width:768px) {
  :root { --display-size: clamp(28px,7vw,40px); --hero-size: clamp(28px,8vw,40px); --gutter: 20px; --head-h: 64px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:640px) {
  :root { --gutter: 16px; }
  .no-break { white-space: normal; }
  .tilt,.card-tilt { transform: none; rotate: none; }
  .top-tools { gap: 5px; }
  .brand { gap: 6px; font-size: 17px; }
  .brand img { width: 26px; height: 26px; }
  .login,.lang { padding-inline: 9px; font-size: 13px; }
  .btn { padding-inline: 18px; }
}
@media (max-width:480px) { .menu-drawer { width: 100%; } }
@media (max-width:390px) {
  .topbar-in { gap: 5px; }
  .lang svg { display: none; }
  .lang { gap: 4px; padding-inline: 5px; font-size: 12px; }
  .login { padding-inline: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .reveal,.reveal.pending,.reveal.shown { opacity: 1; transform: none; transition: none; }
  .btn,.nav-link { transition: none; }
  .btn:hover,.btn:active { transform: none; }
}

/* fab-guard:start */
@supports (animation-timeline:scroll()){
  .float-cta{animation:fab-guard-in linear both;animation-timeline:scroll(root);animation-range:0 60vh}
}
@keyframes fab-guard-in{0%,40%{opacity:0;visibility:hidden}100%{opacity:1;visibility:visible}}
body:has(.float-cta) > footer:last-of-type{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
body:has(.float-cta):not(:has(> footer)){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
/* fab-guard:end */
