:root {
  --ink: #0A0A0B;
  --carbon: #333333;
  --steel: #6E6E73;
  --hair: #E6E4E3;
  --linen: #FAF8F7;
  --ruby: #D42A45;
  --ruby-deep: #B81E37;
  --ruby-soft: #FF6B81;
  --ruby-wash: #FFF1F3;
  --night: #12040A;
  --night-deep: #080205;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-float: 0 0 0 1px rgba(0,0,0,.04), 0 1px 1px .5px rgba(0,0,0,.02), 0 3px 3px 1.5px rgba(0,0,0,.02), 0 6px 6px -3px rgba(0,0,0,.03), 0 12px 12px -6px rgba(0,0,0,.03), 0 24px 24px -12px rgba(0,0,0,.03);
  --shadow-nav: 0 1px 1px .5px rgba(0,0,0,.03), 0 3px 3px 1.5px rgba(0,0,0,.03), 0 6px 6px -3px rgba(0,0,0,.03), 0 12px 12px -6px rgba(0,0,0,.03), 0 24px 24px -12px rgba(0,0,0,.03);
  --body-font: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  --display-font: var(--font-display, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color-scheme: light;
}

h1, h2, h3, h4, h5, h6, dt, summary { text-wrap: balance; }
body { text-wrap: pretty; }

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(224,49,75,.2); }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; border-radius: 10px; }
.lucide { flex: none; width: 16px; height: 16px; }

.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; background: var(--ruby); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
[dir="rtl"] .read-progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .page-article .read-progress { animation: read-progress linear both; animation-timeline: scroll(root); }
}
@keyframes read-progress { to { transform: scaleX(1); } }

.nav { position: sticky; top: 12px; z-index: 50; padding: 0 16px; margin-top: 12px; }
.nav-pill { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 880px; height: 60px; margin: 0 auto; padding-inline: 12px 14px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 0 0 1px rgba(0,0,0,.05), var(--shadow-nav); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .78; transition: opacity .2s ease; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }
.app-badge { display: inline-flex; flex: none; border-radius: 8px; transition: opacity .2s ease; }
.app-badge:hover { opacity: .8; }
.app-badge img { height: 40px; width: auto; }

.page-shell { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; font-size: 13px; color: var(--steel); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.hero { max-width: 820px; margin: 28px auto 0; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--ruby-wash); color: var(--ruby-deep); font-size: 13px; font-weight: 600; }
.hero h1 { margin: 0; font-family: var(--display-font); font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.hero-lede { max-width: 680px; margin: 24px auto 0; font-size: 19px; line-height: 1.6; color: var(--carbon); text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.04); font-size: 13px; font-weight: 500; color: var(--carbon); }
.byline a { text-decoration: none; }
.byline .lucide { width: 14px; height: 14px; color: var(--ruby); }

.content-article { margin-top: 56px; }
.content-article > .content-figure:first-child { margin: 0 auto 48px; max-width: 820px; }
.content-section { max-width: 680px; margin: 0 auto; padding: 40px 0; }
.content-section + .content-section { border-top: 1px solid var(--hair); }
.content-section h2 { margin: 0 0 18px; font-family: var(--display-font); font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.content-section h3 { margin: 36px 0 10px; font-family: var(--display-font); font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.content-section p, .content-section li { font-size: 18px; line-height: 1.7; color: var(--carbon); text-wrap: pretty; }
.content-section p { margin: 0 0 18px; }
.content-section strong { color: var(--ink); font-weight: 650; }
.content-section a { color: var(--ruby-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(184,30,55,.35); }
.content-section a:hover { text-decoration-color: currentColor; }
.content-section code { padding: 2px 8px; border-radius: 8px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.05); font: 500 15px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); white-space: nowrap; }
.content-section ul, .content-section ol { margin: 0 0 20px; padding: 0; list-style: none; }
.content-section li { position: relative; margin: 0 0 10px; padding-inline-start: 30px; }
.content-section ul > li::before { content: ""; position: absolute; inset-inline-start: 8px; top: .72em; width: 7px; height: 7px; border-radius: 999px; background: var(--ruby); }
.content-section ol { counter-reset: step; }
.content-section ol > li { counter-increment: step; padding-inline-start: 40px; }
.content-section ol > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: .2em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }

.content-callout { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 6px 16px; margin: 32px 0; padding: 22px 24px; border-radius: 20px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.035); }
.content-callout > .lucide, .content-safety > .lucide { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: linear-gradient(180deg, #F0506A, #D42B46); box-shadow: 0 4px 10px -4px rgba(212,43,70,.55); color: #fff; stroke-width: 2.25; }
.content-callout strong { margin-top: 6px; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
.content-callout p { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.6; }
.content-callout > .lucide + p { margin-top: 5px; }

.content-figure { margin: 32px 0; }
.content-figure img { width: 100%; border-radius: 20px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 40px 80px -48px rgba(18,4,10,.45); }
.content-figure figcaption, .content-figure-device figcaption { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--steel); text-align: center; text-wrap: pretty; }
.content-figure-strip img { border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.strip-scroll { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); overscroll-behavior-x: contain; }
.strip-scroll img { display: block; width: auto; max-width: none; height: 300px; border-radius: 0; box-shadow: none; }
.strip-scroll:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; }
.content-figure-device { position: relative; isolation: isolate; padding: 48px 24px 28px; border-radius: 28px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.035); overflow: hidden; }
.content-figure-device::before { content: ""; position: absolute; inset: 12% 26% 30%; z-index: -1; border-radius: 999px; background: rgba(224,49,75,.16); filter: blur(56px); }
.content-figure-device figcaption { max-width: 440px; margin: 20px auto 0; }
.content-figure-device img { width: min(100%, 250px); margin: 0 auto; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 30px 34px rgba(18,4,10,.22)) drop-shadow(0 8px 12px rgba(18,4,10,.12)); }

.guide-toc { max-width: 680px; margin: 0 auto 8px; }
.guide-toc-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--steel); }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 40px; }
.guide-toc li { counter-increment: toc; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.guide-toc a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); text-decoration: none; transition: color .2s ease; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 20px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--steel); transition: color .2s ease; }
.guide-toc a:hover, .guide-toc a:hover::before { color: var(--ruby-deep); }
.content-section { scroll-margin-top: 88px; }
.content-lead p { font-size: 19px; }
.content-section sup.ref { margin-inline-start: 2px; font-size: 11px; line-height: 0; }
.content-section sup.ref a { text-decoration: none; font-weight: 600; }
.content-table { margin: 8px 0 24px; overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.content-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.content-table table:has(tr > :nth-child(3)) { min-width: 34rem; }
.content-table th { padding: 12px 16px; background: var(--linen); text-align: start; font-weight: 650; color: var(--ink); white-space: nowrap; }
.content-table td { padding: 12px 16px; border-top: 1px solid var(--hair); color: var(--carbon); vertical-align: top; }
.guide-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 20px; max-width: 680px; margin: 8px auto; padding: 20px 24px; border-radius: 24px; background: radial-gradient(80% 120% at 0% 0%, rgba(224,49,75,.28), transparent 60%), linear-gradient(135deg, #1B0510, #12040A); color: #fff; }
.guide-promo img { width: 48px; height: 48px; border-radius: 12px; }
.guide-promo strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.guide-promo p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #CFCFCF; }
.guide-promo .guide-promo-link img { width: auto; height: 44px; border-radius: 0; }
.content-figure-watch img { width: min(100%, 200px); }
.hub-group { max-width: 1040px; margin: 56px auto 0; }
.hub-group > h2 { margin: 0 0 20px; font-family: var(--display-font); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; text-align: center; }
.content-sources h2 { font-size: 22px; }
.content-sources li { font-size: 15px; line-height: 1.55; }
.content-sources ul > li::before { width: 5px; height: 5px; background: var(--steel); }

.content-related { max-width: 1040px; margin: 48px auto 0; padding: 56px 0 0; border-top: 1px solid var(--hair); }
.page-collection .content-related { border-top: 0; padding-top: 16px; margin-top: 40px; }
.content-related > h2 { margin: 0 0 28px; font-family: var(--display-font); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.025em; text-align: center; }
.content-related > .eyebrow { display: none; }
.content-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 336px)); justify-content: center; gap: 16px; }
.content-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 24px 24px 56px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-float); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float), 0 30px 50px -30px rgba(18,4,10,.3); }
.content-card strong { font-family: var(--display-font); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.content-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--carbon); }
.content-card::after { content: "→"; position: absolute; inset-inline-start: 24px; bottom: 20px; font-size: 18px; color: var(--ruby); transition: transform .3s ease; }
[dir="rtl"] .content-card::after { content: "←"; }
.content-card:hover::after { transform: translateX(3px); }
[dir="rtl"] .content-card:hover::after { transform: translateX(-3px); }
.content-card .card-visual { display: block; margin: -24px -24px 12px; height: 180px; overflow: hidden; border-radius: 20px 20px 0 0; background: #F3EFEE; }
.content-card .card-visual img { width: 100%; height: 100%; object-fit: cover; }
.content-card .card-visual img.peek { width: 150px; height: auto; margin: 22px auto 0; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(18,4,10,.18)); }

.content-safety { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 6px 16px; max-width: 820px; margin: 64px auto 0; padding: 24px 28px; border-radius: 20px; background: var(--linen); box-shadow: 0 0 0 1px rgba(0,0,0,.035); }
.content-safety h2 { margin: 6px 0 0; font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.01em; }
.content-safety p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--carbon); }

.content-cta { position: relative; overflow: hidden; margin: 56px auto 96px; padding: 64px 24px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(60% 70% at 50% 0%, rgba(224,49,75,.42), transparent 70%), linear-gradient(180deg, #1B0510 0%, #12040A 100%); }
.content-cta img.cta-icon { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(224,49,75,.6); }
.content-cta h2 { max-width: 640px; margin: 0 auto; font-family: var(--display-font); font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.content-cta p { max-width: 520px; margin: 18px auto 0; font-size: 17px; line-height: 1.55; color: #CFCFCF; text-wrap: pretty; }
.content-cta .app-store-link { display: inline-flex; margin-top: 28px; border-radius: 12px; transition: opacity .2s ease; }
.content-cta .app-store-link:hover { opacity: .85; }
.content-cta .app-store-link img { height: 52px; width: auto; }

.site-footer { padding: 64px 0 48px; background: var(--night); color: #fff; }
.site-footer .footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(var(--footer-cols, 2), minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1023px) and (min-width: 641px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; } }
.footer-tagline { max-width: 20rem; margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col h4 { margin: 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.45); }
.footer-col ul { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: grid; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 767px) {
  .crumbs { margin-top: 36px; }
  .hero-lede { font-size: 17px; }
  .content-article { margin-top: 36px; }
  .content-section { padding: 32px 0; }
  .content-section p, .content-section li { font-size: 17px; }
  .content-figure-device { padding: 36px 16px 22px; border-radius: 24px; }
  .content-callout, .content-safety { column-gap: 12px; padding: 20px; }
  .content-callout > .lucide, .content-safety > .lucide { grid-row: auto; }
  .content-callout p, .content-safety p { grid-column: 1 / -1; }
  .content-figure-device img { width: min(100%, 230px); }
  .content-figure-watch img { width: min(100%, 180px); }
  .content-cta { margin-bottom: 64px; padding: 48px 20px; }
  .guide-promo { grid-template-columns: auto 1fr; }
  .guide-promo-link { grid-column: 1 / -1; justify-self: center; }
  .guide-toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .content-card, .content-card::after { transition: none; }
  .read-progress { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

html:lang(ja) *, html:lang(zh-Hans) * { letter-spacing: 0 !important; }
html:lang(ja), html:lang(zh-Hans) { line-break: strict; }
html:lang(ja) .content-page h1, html:lang(zh-Hans) .content-page h1 { line-height: 1.25; }
html:lang(ja) .content-page h2, html:lang(zh-Hans) .content-page h2, html:lang(ja) .content-page h3, html:lang(zh-Hans) .content-page h3 { line-height: 1.35; }
html:lang(ja) .content-article p, html:lang(zh-Hans) .content-article p, html:lang(ja) .content-article li, html:lang(zh-Hans) .content-article li { line-height: 1.9; }
html:lang(ja) body { word-break: auto-phrase; }
html:lang(de) .content-article p, html:lang(de) .content-article li, html:lang(de) .content-card p { overflow-wrap: break-word; }
html:lang(de) h1, html:lang(de) h2 { overflow-wrap: break-word; }
html:lang(de) .hero h1 { font-size: clamp(32px, 5.4vw, 60px); }
