:root {
  color-scheme: dark;
  --page: #09090b;
  --panel: #151214;
  --panel-soft: #211719;
  --red: #d62f3a;
  --red-bright: #ff5059;
  --red-dark: #801821;
  --blue: #294d82;
  --text: #f8efeb;
  --muted: #b9aaa7;
  --line: rgba(214, 47, 58, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: #050506; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at top, #211014, #050506 50%); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: 100%; max-width: 480px; min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--page); box-shadow: 0 0 46px rgba(0, 0, 0, .52); }
.topbar { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; min-height: 62px; padding: 8px 10px; background: rgba(7, 7, 8, .98); border-bottom: 1px solid var(--line); }
.menu-toggle { display: grid; place-content: center; width: 44px; min-height: 44px; padding: 0; cursor: pointer; background: #181416; border: 1px solid var(--line); border-radius: 10px; }
.menu-toggle span { width: 19px; height: 2px; margin: 2px 0; background: var(--red-bright); border-radius: 2px; }
.brand { color: var(--red-bright); font-size: 1.45rem; font-weight: 950; letter-spacing: -.06em; text-transform: uppercase; }
.auth-actions { display: flex; gap: 6px; }
.auth-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 9px; border-radius: 9px; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.auth-login { color: #e3edff; background: var(--blue); }
.auth-register { background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); }
.section-nav { display: flex; gap: 7px; overflow-x: auto; padding: 10px 11px; background: #0f0e10; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.nav-chip { flex: 0 0 auto; min-height: 36px; padding: 8px 10px; color: #e3d5d3; background: #211b1d; border: 1px solid rgba(214, 47, 58, .17); border-radius: 999px; font-size: .68rem; font-weight: 800; }
.nav-chip[aria-current="page"] { color: #fff; background: var(--red-dark); border-color: var(--red-bright); }
.page-content { padding: 12px 12px 92px; }
.breadcrumb { display: flex; gap: 7px; align-items: center; margin: 0 0 10px; color: var(--muted); font-size: .68rem; }
.breadcrumb a { color: #ffc5c8; }
.hero-card { position: relative; min-height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; isolation: isolate; }
.hero-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 7, .97), rgba(5, 5, 7, .8) 55%, rgba(5, 5, 7, .14)); }
.hero-copy { width: 72%; padding: 25px 15px 20px; }
.eyebrow { margin: 0 0 6px; color: var(--red-bright); font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; font-size: clamp(1.65rem, 7vw, 2.15rem); line-height: 1.04; letter-spacing: -.04em; }
.hero-copy > p:last-child { margin: 10px 0 0; color: #ded0cd; font-size: .78rem; line-height: 1.55; }
.page-toc { margin-top: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.page-toc strong { font-size: .8rem; }
.page-toc div { display: flex; gap: 7px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.page-toc a { flex: 0 0 auto; min-height: 36px; padding: 8px 9px; color: #f1d8d8; background: var(--panel-soft); border-radius: 8px; font-size: .66rem; }
.article-body { margin-top: 12px; }
.content-section { margin-bottom: 10px; padding: 15px 13px; background: linear-gradient(145deg, #171315, #100e0f); border: 1px solid var(--line); border-radius: 12px; }
.content-section h2 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.25; }
.content-section p { margin: 0 0 10px; color: #d8cac7; font-size: .78rem; line-height: 1.7; }
.content-list { display: grid; gap: 7px; margin: 5px 0 0; padding: 0; list-style: none; }
.content-list li { position: relative; padding-left: 18px; color: #e8dad7; font-size: .74rem; line-height: 1.5; }
.content-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red-bright); font-weight: 900; }
.checklist-card,.notice-card,.faq-section,.related-section { margin-top: 14px; padding: 15px 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.checklist-card h2,.faq-section h2,.related-section h2 { margin: 0 0 11px; font-size: 1.08rem; }
.checklist-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: check; }
.checklist-card li { position: relative; min-height: 36px; padding: 9px 9px 9px 39px; color: #e6d7d4; background: #211719; border-radius: 8px; font-size: .73rem; line-height: 1.45; counter-increment: check; }
.checklist-card li::before { content: counter(check); position: absolute; top: 8px; left: 9px; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--red-dark); border-radius: 50%; font-size: .65rem; font-weight: 900; }
.action-button { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 13px; padding: 10px; background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); border-radius: 10px; font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.action-button.is-disabled { color: #bdaead; background: #211b1d; border: 1px dashed rgba(255, 80, 89, .35); }
.notice-card { background: linear-gradient(145deg, #26171a, #151113); }
.notice-card strong { color: #ffc6c9; font-size: .78rem; }
.notice-card p { margin: 6px 0 0; color: #d4c5c2; font-size: .72rem; line-height: 1.55; }
.faq-item { margin-top: 8px; overflow: hidden; background: #201719; border: 1px solid rgba(214, 47, 58, .18); border-radius: 9px; }
.faq-item button { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; min-height: 44px; padding: 10px 11px; text-align: left; cursor: pointer; background: transparent; border: 0; font-size: .75rem; font-weight: 800; }
.faq-answer { padding: 0 11px 11px; }
.faq-answer p { margin: 0; color: #cfc0bd; font-size: .72rem; line-height: 1.55; }
.related-grid { display: grid; gap: 8px; }
.related-card { display: grid; gap: 4px; min-height: 78px; padding: 11px; background: linear-gradient(145deg, #23181b, #141113); border: 1px solid rgba(214, 47, 58, .2); border-radius: 9px; }
.related-card span { color: var(--red-bright); font-size: .55rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.related-card strong { font-size: .83rem; }
.related-card small { color: var(--muted); font-size: .64rem; }
.back-to-top { width: 100%; min-height: 44px; margin-top: 14px; cursor: pointer; color: #f2dddd; background: #1d1719; border: 1px solid var(--line); border-radius: 9px; font-weight: 800; }
.site-footer { padding: 23px 16px 92px; color: var(--muted); text-align: center; background: #080809; border-top: 1px solid var(--line); }
.site-footer strong { color: var(--red-bright); font-size: 1.1rem; }
.site-footer p { margin: 6px auto 0; max-width: 380px; font-size: .68rem; line-height: 1.55; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 480px); min-height: 66px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 9, 10, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; color: #c9b9b6; font-size: .56rem; font-weight: 800; }
.bottom-nav a span { margin-bottom: 3px; color: var(--red-bright); font-size: 1rem; }
.bottom-nav .bottom-primary { margin: -12px 4px 5px; color: #fff; background: linear-gradient(145deg, var(--red-bright), var(--red-dark)); border-radius: 50%; box-shadow: 0 8px 20px rgba(214, 47, 58, .35); }
.bottom-nav .bottom-primary span { color: #fff; }
.menu-overlay { position: fixed; inset: 0; z-index: 29; visibility: hidden; opacity: 0; pointer-events: none; background: rgba(0, 0, 0, .7); transition: opacity .2s ease, visibility 0s linear .2s; }
.menu-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.menu-drawer { position: fixed; top: 0; bottom: 0; left: max(0px, calc(50% - 240px)); z-index: 30; width: min(84vw, 330px); padding: 17px; overflow-y: auto; visibility: hidden; opacity: 0; pointer-events: none; background: #100d0f; border-right: 1px solid var(--line); transform: translateX(-105%); transition: transform .22s ease, opacity .2s ease, visibility 0s linear .22s; }
.menu-drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.drawer-head button { width: 44px; min-height: 44px; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.menu-drawer nav { display: grid; gap: 7px; }
.drawer-link { min-height: 44px; padding: 11px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: .75rem; }
.drawer-link[aria-current="page"] { color: #fff; background: var(--red-dark); }
.menu-drawer > p { color: var(--muted); font-size: .68rem; line-height: 1.5; }
a:focus-visible,button:focus-visible { outline: 3px solid #ffabb0; outline-offset: -3px; }
@media (max-width: 370px) {
  .topbar { grid-template-columns: 42px 1fr auto; padding-inline: 7px; }
  .brand { font-size: 1.25rem; }
  .auth-actions a { padding-inline: 7px; font-size: .59rem; }
  .hero-copy { width: 78%; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
