:root{
  --bg:#F2F4F7;
  --panel:#FFFFFF;
  --key:#FFFFFF;
  --key-alt:#E8ECF1;
  --key-line:#D9DEE5;
  --key-edge:#C9D0DA;
  --line:#DCE1E8;
  --ink:#14181F;
  --muted:#566070;
  --link:#1747B5;
  --cta:#FF6B1A;
  --cta-hover:#FF7A2E;
  --cta-edge:#C24A00;
  --cta-soft:#FFE3CC;
  --ok:#12784B;
  --foot:#14181F;
  --foot-ink:#E8ECF2;
  --foot-muted:#A9B2BF;
  --r-key:10px;
  --r-panel:14px;
  --header-h:56px;
  --wrap:820px;
  --wrap-wide:1120px;
  --z-base:0;
  --z-dropdown:100;
  --z-sticky:200;
  --z-overlay:900;
  --z-modal:1000;
  --z-toast:1100;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --space-12:48px;
  --space-16:64px;
  --font-sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

@media (min-width:48em){
  :root{ --header-h:60px; }
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:48em){
  body{ font-size:17px; }
}

img{ max-width:100%; height:auto; display:block; }
table{ border-collapse:collapse; margin:0; width:100%; }
a{ color:var(--link); }

h1,h2,h3,h4,p,ul,ol,figure{ margin:0 0 var(--space-4); }

:focus-visible{ outline:3px solid var(--link); outline-offset:2px; }

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--ink); color:#fff;
  padding:10px 16px; border-radius:0 0 8px 0;
  z-index:var(--z-toast);
  text-decoration:none;
}
.skip-link:focus{ left:0; }

h1{ font-size:clamp(1.75rem,4vw,2.5rem); font-weight:800; letter-spacing:-0.02em; line-height:1.15; }
h2{ font-size:clamp(1.3rem,2.6vw,1.6rem); font-weight:750; line-height:1.25; }
h3{ font-size:1.15rem; font-weight:700; line-height:1.3; }
h4{ font-size:1rem; font-weight:700; line-height:1.4; }

.wrap{ max-width:var(--wrap-wide); margin-inline:auto; padding-inline:clamp(16px,4vw,24px); }
.doc{ max-width:var(--wrap); margin-inline:auto; padding-inline:clamp(16px,4vw,24px); padding-bottom:var(--space-12); }

.key{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px;
  background:var(--key); border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
  color:var(--ink); font-weight:700;
}
a.key,button.key{
  cursor:pointer; text-decoration:none; min-height:44px;
  transition:transform .12s ease, box-shadow .12s ease;
}
a.key:hover,button.key:hover{ transform:translateY(1px); box-shadow:0 2px 0 var(--key-edge); }
a.key:active,button.key:active{ transform:translateY(3px); box-shadow:0 0 0 var(--key-edge); }

.key--cta{ background:var(--cta); border-color:var(--cta-edge); box-shadow:0 3px 0 var(--cta-edge); color:var(--ink); }
a.key--cta:hover,button.key--cta:hover{ background:var(--cta-hover); box-shadow:0 2px 0 var(--cta-edge); }
a.key--cta:active,button.key--cta:active{ box-shadow:0 0 0 var(--cta-edge); }

.key--fn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:34px; padding:0 6px;
  font-family:var(--font-mono); font-size:13px; font-weight:700; letter-spacing:.02em;
  background:var(--key); color:var(--ink);
  border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
  flex-shrink:0;
}
@media (max-width:47.9375em){
  .key--fn{ min-width:34px; height:30px; font-size:12px; }
}

.key--chip{
  font-family:var(--font-mono); font-size:.78rem;
  padding:6px 14px;
  background:var(--cta-soft); border-color:var(--cta-edge);
  box-shadow:0 2px 0 var(--cta-edge);
}

.site-header{
  position:sticky; top:0; z-index:var(--z-sticky);
  background:#fff; border-bottom:1px solid var(--line);
  height:var(--header-h);
  display:flex; align-items:center;
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  width:100%;
}
.brand{ display:inline-flex; align-items:center; }
.brand__logo{ height:24px; width:auto; }
@media (min-width:48em){ .brand__logo{ height:28px; } }

.site-header__actions{ display:flex; align-items:center; gap:10px; }

.hamburger{
  display:inline-flex; align-items:center; gap:8px;
  background:none; border:0; padding:6px; margin:0; cursor:pointer;
  color:var(--ink); font:700 .8rem var(--font-mono);
  min-height:44px;
}
.hamburger__box{ width:22px; height:16px; position:relative; }
.hamburger__inner,.hamburger__inner::before,.hamburger__inner::after{
  position:absolute; left:0; width:100%; height:2px;
  background:var(--ink); border-radius:2px;
  transition:transform .15s ease, opacity .15s ease, background .15s ease;
}
.hamburger__inner{ top:7px; }
.hamburger__inner::before{ content:""; top:-7px; }
.hamburger__inner::after{ content:""; top:7px; }
.hamburger[aria-expanded="true"] .hamburger__inner{ background:transparent; }
.hamburger[aria-expanded="true"] .hamburger__inner::before{ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__inner::after{ transform:translateY(-7px) rotate(-45deg); }

.site-nav ul{ list-style:none; margin:0; padding:0; }
.site-nav a{
  display:block; text-decoration:none; color:var(--ink); font-weight:600;
  position:relative;
}
.site-nav a[aria-current="page"]{ font-weight:800; }

@media (max-width:63.9375em){
  .site-nav{
    display:none; position:fixed; inset-inline:0; top:var(--header-h);
    background:var(--panel); border-bottom:1px solid var(--line);
    padding:8px clamp(16px,4vw,24px) 20px;
    max-height:calc(100vh - var(--header-h)); overflow-y:auto;
    z-index:var(--z-dropdown);
  }
  .site-nav.is-open{ display:block; }
  .site-nav ul{ display:flex; flex-direction:column; gap:2px; }
  .site-nav a{ padding:14px 10px; border-bottom:1px solid var(--line); min-height:44px; display:flex; align-items:center; }
  .site-nav li:last-child a{ border-bottom:0; }
}
@media (min-width:64em){
  .hamburger{ display:none; }
  .site-nav{ display:flex; }
  .site-nav ul{ display:flex; gap:28px; }
  .site-nav a{ padding:8px 2px; }
  .site-nav a::after{
    content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
    background:var(--cta); transition:right .18s ease;
  }
  .site-nav a:hover::after,.site-nav a[aria-current="page"]::after{ right:0; }
}

.hero{ padding-block:clamp(28px,6vw,48px) var(--space-8); }
.chip{ margin:0 0 var(--space-3); }
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin:var(--space-6) 0; }

section{ scroll-margin-top:calc(var(--header-h) + 8px); }
h3[id]{ scroll-margin-top:calc(var(--header-h) + 8px); }

.sec{ padding-top:var(--space-8); }
.sec__sentinel{ height:1px; margin-bottom:-1px; }
.sec__bar{
  display:flex; align-items:center; gap:10px;
  padding-block:12px;
  background:var(--bg);
  border-bottom:1px solid transparent;
  box-shadow:0 0 0 rgba(20,24,31,0);
  transition:box-shadow .18s ease, border-color .18s ease;
}
.sec__bar h2{ margin:0; }
@media (min-width:48em){
  .sec__bar{
    position:sticky; top:var(--header-h); z-index:1;
    padding-block:14px;
  }
  .sec__bar.is-docked{
    border-bottom-color:var(--line);
    box-shadow:0 6px 12px -8px rgba(20,24,31,.18);
  }
}

.sec > h3{ position:relative; padding-left:14px; margin-top:var(--space-6); }
.sec > h3::before{
  content:""; position:absolute; left:0; top:.15em; bottom:.15em;
  width:4px; background:var(--cta); border-radius:2px;
}

.sec ul{ list-style:none; padding-left:0; }
.sec ul > li{ position:relative; padding-left:24px; margin-bottom:var(--space-2); }
.sec ul > li::before{
  content:""; position:absolute; left:0; top:.55em;
  width:8px; height:8px; border-radius:2px;
  background:var(--key); border:1px solid var(--key-line);
  box-shadow:0 2px 0 var(--cta-edge);
}

.tbl{
  margin:var(--space-4) 0 var(--space-6);
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-panel);
  overflow:hidden;
  font-variant-numeric:tabular-nums;
}
.tbl table{ width:100%; }
.tbl th,.tbl td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl thead th{ background:var(--ink); color:#fff; font:700 .8rem var(--font-mono); letter-spacing:.02em; }
.tbl tbody tr:last-child td{ border-bottom:0; }

.tbl--kv table{ table-layout:fixed; }
.tbl--kv td:first-child,.tbl--kv th:first-child{
  width:38%;
  overflow-wrap:break-word; word-break:normal; hyphens:auto;
}
.tbl--kv td:first-child{ font-family:var(--font-mono); color:var(--muted); }

@media (max-width:30em){
  .tbl--kv td,.tbl--kv th{ padding:10px 8px; }
  .tbl--kv td:first-child,.tbl--kv th:first-child{ width:42%; font-size:13px; }
}

.tbl--scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.tbl--scroll table{ min-width:620px; }

.logo-row{ display:flex; flex-wrap:wrap; gap:10px; margin:var(--space-4) 0 var(--space-6); }
.logo-row__label{
  font-family:var(--font-mono); font-size:.8rem; color:var(--muted);
  letter-spacing:.04em; margin:0 0 var(--space-2); width:100%;
}
.logo-tile{
  display:flex; align-items:center; justify-content:center;
  width:96px; height:56px; padding:8px;
  background:var(--key); border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
}
.logo-tile img{ max-width:100%; max-height:100%; object-fit:contain; }
.logo-tile--dark{ background:var(--ink); box-shadow:0 3px 0 #000; }
.logo-tile img[src*="litecoin"]{ filter:brightness(.6); }
@media (min-width:48em){
  .logo-tile{ width:120px; height:64px; }
}

.kb{
  margin:var(--space-6) 0;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-panel);
  padding:var(--space-4);
}
@media (min-width:48em){ .kb{ padding:var(--space-6); } }
.kb__caption{ font-family:var(--font-mono); font-size:.85rem; color:var(--muted); margin:0 0 var(--space-4); }
.kb__switch{
  display:inline-flex; align-items:center; gap:0; position:relative;
  border:1px solid var(--key-line); border-radius:999px; background:var(--key-alt);
  padding:4px; margin-bottom:var(--space-6); cursor:pointer;
  font-family:var(--font-mono); font-weight:700; font-size:.8rem;
  min-height:44px;
}
.kb__switch-state{ padding:6px 18px; border-radius:999px; position:relative; z-index:1; color:var(--muted); transition:color .18s ease; }
.kb__switch-knob{
  position:absolute; top:4px; left:4px; width:calc(50% - 4px); height:calc(100% - 8px);
  background:var(--cta); border-radius:999px; box-shadow:0 2px 0 var(--cta-edge);
  transition:transform .18s ease;
}
.kb__switch[aria-checked="true"] .kb__switch-knob{ transform:translateX(100%); }
.kb__switch[aria-checked="false"] .kb__switch-state--cz{ color:var(--ink); }
.kb__switch[aria-checked="true"] .kb__switch-state--en{ color:var(--ink); }

.kb__row{
  list-style:none; margin:0 0 var(--space-4); padding:0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:8px;
}
@media (min-width:48em){ .kb__row{ grid-template-columns:repeat(10,1fr); } }
.kb__key{
  position:relative; aspect-ratio:1;
  background:var(--key); border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
  display:flex; align-items:center; justify-content:center;
}
.kb__legend{ font-family:var(--font-mono); transition:transform .09s ease; }
.kb__legend--primary{ font-size:1.1rem; font-weight:700; }
.kb__legend--secondary{ position:absolute; top:4px; right:6px; font-size:.6rem; color:var(--muted); }
.kb__legend.is-flip{ transform:rotateX(90deg); }
.kb__note{ font-size:.9rem; color:var(--muted); margin:0; }

.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq{
  background:var(--key); border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
  transition:transform .12s ease, box-shadow .12s ease;
}
.faq summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 18px; min-height:44px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::marker{ content:""; }
.faq summary h3,.faq summary h4{ margin:0; font-size:1rem; font-weight:700; }
.faq summary::after{
  content:""; width:9px; height:9px; flex-shrink:0;
  border-right:2px solid var(--ink); border-bottom:2px solid var(--ink);
  transform:rotate(45deg);
  transition:transform .18s ease;
}
.faq[open]{ transform:translateY(2px); box-shadow:0 1px 0 var(--key-edge); }
.faq[open] summary::after{ transform:rotate(225deg); }
.faq__a{ padding:0 18px 18px; }
.faq__a p{ margin:0; }

.site-footer{ background:var(--foot); color:var(--foot-ink); padding-block:var(--space-12); }
.site-footer__inner{ display:flex; flex-direction:column; gap:var(--space-6); align-items:flex-start; }
.site-footer .brand__logo{ height:26px; }
.footer-nav ul{ list-style:none; display:flex; flex-wrap:wrap; gap:10px 24px; margin:0; padding:0; }
.footer-nav a{ color:var(--foot-ink); text-decoration:none; font-weight:600; }
.footer-nav a:hover{ text-decoration:underline; }
.site-footer__rg{ color:var(--foot-muted); font-size:.85rem; line-height:1.6; max-width:68ch; margin:0; }
.badge--18{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; min-height:32px; padding:4px 10px;
  background:var(--key-alt); color:var(--ink); border-radius:var(--r-key);
  font-family:var(--font-mono); font-weight:800; font-size:.85rem;
}
.site-footer__copy{ color:var(--foot-muted); font-size:.85rem; margin:0; }
@media (min-width:48em){
  .site-footer__inner{ flex-direction:row; flex-wrap:wrap; justify-content:space-between; align-items:center; }
}

.nav-open .cookie-banner,.nav-open .to-top{ visibility:hidden; }
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:var(--z-overlay);
  background:var(--panel); border-top:1px solid var(--key-line);
  padding:16px;
}
.cookie-banner__inner{ display:flex; flex-direction:column; gap:12px; }
.cookie-banner p{ margin:0; font-size:.9rem; }
@media (min-width:30em){
  .cookie-banner{
    left:16px; right:auto; bottom:16px; max-width:380px;
    border:1px solid var(--key-line); border-radius:var(--r-panel);
    box-shadow:0 10px 30px rgba(20,24,31,.18);
  }
}

.to-top{
  position:fixed; right:16px; bottom:16px; z-index:var(--z-overlay);
  width:48px; height:48px; border-radius:50%;
  background:var(--key); border:1px solid var(--key-line);
  box-shadow:0 3px 0 var(--key-edge);
  font-size:1.1rem; font-weight:700; color:var(--ink); cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.to-top:hover{ transform:translateY(1px); box-shadow:0 2px 0 var(--key-edge); }
.to-top:active{ transform:translateY(3px); box-shadow:0 0 0 var(--key-edge); }
.to-top[hidden]{ display:none; }
@media (max-width:29.9375em){
  .to-top{ bottom:84px; }
}

.crumbs{ padding-block:var(--space-4) 0; }
.crumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; font-size:.85rem; color:var(--muted); }
.crumbs a{ color:var(--muted); text-decoration:none; }
.crumbs a:hover{ color:var(--link); }
.crumbs li + li::before{ content:"›"; margin-right:6px; color:var(--muted); }
.crumbs li[aria-current="page"]{ color:var(--ink); font-weight:600; }

.page-hero{ padding-block:var(--space-6) var(--space-6); }
.page-hero h1{ margin-bottom:var(--space-4); }
.page-hero p{ color:var(--muted); margin:0; }

.page-cta{ margin-top:var(--space-4); }

.slot-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-4); margin:var(--space-4) 0 var(--space-6); }
@media (min-width:48em){ .slot-grid{ grid-template-columns:repeat(4,1fr); } }
.slot-tile{
  position:relative; display:block; overflow:hidden;
  border:1px solid var(--key-line); border-radius:var(--r-panel);
  box-shadow:0 3px 0 var(--key-edge);
  transition:transform .12s ease, box-shadow .12s ease;
}
.slot-tile img{ width:100%; object-fit:cover; }
.slot-tile__play{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  pointer-events:none; min-height:36px; padding:8px 16px;
}
.slot-tile:hover{ transform:translateY(1px); box-shadow:0 2px 0 var(--key-edge); }
.slot-tile:hover .slot-tile__play{ background:var(--cta-hover); }

.notfound{ padding-block:var(--space-16) var(--space-12); text-align:center; }
.notfound__code{ font-family:var(--font-mono); font-size:clamp(3rem,10vw,5rem); font-weight:800; color:var(--cta); margin:0; }
.notfound .key--cta{ margin:var(--space-6) auto 0; }
.notfound__links{ margin-top:var(--space-8); }
.notfound__links ul{ list-style:none; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0; padding:0; }
.notfound__links a{
  display:inline-flex; align-items:center; min-height:44px; padding:0 16px;
  background:var(--key); border:1px solid var(--key-line); border-radius:var(--r-key);
  box-shadow:0 3px 0 var(--key-edge);
  text-decoration:none; color:var(--ink); font-weight:600;
  transition:transform .12s ease, box-shadow .12s ease;
}
.notfound__links a:hover{ transform:translateY(1px); box-shadow:0 2px 0 var(--key-edge); }

@media (prefers-reduced-motion:reduce){
  .key,
  a.key,button.key,
  .to-top,
  .slot-tile,
  .faq,
  .faq summary::after,
  .sec__bar,
  .kb__legend,
  .kb__switch-knob,
  .hamburger__inner,
  .hamburger__inner::before,
  .hamburger__inner::after,
  .site-nav a::after,
  .notfound__links a{
    transition:none !important;
    animation:none !important;
  }
}
