/* ByteDock: an app-store look. Accent from the hub logo: violet #8f7dff to sky #38bdf8. */
:root {
  --bg: #0b0f1a; --bg2: #0f1524; --card: #141b2d; --card2: #1a2338; --line: #253049;
  --text: #e9edf7; --muted: #98a3bd; --a: #9d8cff; --b: #38bdf8;
  --ok: #4ade80; --warn: #f2c14e; --danger: #ff7b72; --code: #090d16; --on-accent: #070a14;
  --radius: 18px; --shadow: 0 12px 32px rgba(0,0,0,.35); --shadow-sm: 0 4px 14px rgba(0,0,0,.25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}
/* Theme: the visitor's choice (data-theme on <html>, saved by theme.js) wins; otherwise the system setting. */
:root[data-theme="light"] {
  --bg: #f5f6fb; --bg2: #eceef7; --card: #ffffff; --card2: #f3f4fa; --line: #dde1ee;
  --text: #141a2e; --muted: #5a6480; --a: #5b47e0; --b: #0369a1;
  --ok: #15803d; --warn: #8a6100; --danger: #b42318; --code: #f1f3f9; --on-accent: #ffffff;
  --shadow: 0 10px 28px rgba(20,26,60,.10); --shadow-sm: 0 3px 10px rgba(20,26,60,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6fb; --bg2: #eceef7; --card: #ffffff; --card2: #f3f4fa; --line: #dde1ee;
    --text: #141a2e; --muted: #5a6480; --a: #5b47e0; --b: #0369a1;
    --ok: #15803d; --warn: #8a6100; --danger: #b42318; --code: #f1f3f9; --on-accent: #ffffff;
    --shadow: 0 10px 28px rgba(20,26,60,.10); --shadow-sm: 0 3px 10px rgba(20,26,60,.08);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--a); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
code { background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .4em; background: var(--card); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 1.4em 0 .5em; }
h3, .h3 { font-size: 1.15rem; margin: 1.2em 0 .5em; }
h4, .h4 { font-size: 1.02rem; margin: 1.3em 0 .4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--b); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; margin: 0; }
.grad { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

/* header: brand, search, menu */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px 18px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1.02rem; letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.search { display: none; flex: 1 1 150px; max-width: 420px; }
.js .search { display: block; }
.search input { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a3bd' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; }
.search input:focus { border-color: var(--a); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 25%, transparent); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.theme-btn { display: none; flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.js .theme-btn { display: inline-flex; }
.theme-btn:hover { border-color: var(--a); }
.theme-btn:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-shown-theme="dark"] .theme-btn .sun { display: block; }
:root[data-shown-theme="dark"] .theme-btn .moon { display: none; }
.nav a { color: var(--text); text-decoration: none; padding: 7px 9px; border-radius: 10px; font-size: .95rem; }
.nav a:hover { background: var(--card); }
.nav a[aria-current="page"] { background: var(--card); color: var(--a); font-weight: 600; }
@media (max-width: 900px) { .nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .nav a { white-space: nowrap; } .search { order: 3; max-width: none; } }

/* buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; padding: 9px 20px; font-weight: 650; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); text-align: center; }
.btn:hover { border-color: var(--a); }
.btn.big { padding: 12px 26px; font-size: 1.02rem; }
.btn.primary { background: linear-gradient(90deg, var(--a), var(--b)); color: var(--on-accent); border: 0; box-shadow: var(--shadow-sm); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.disabled { opacity: .6; cursor: not-allowed; filter: grayscale(.4); }
.btn-sub { font-size: .76rem; font-weight: 500; opacity: .85; }
.copy { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--a); }
.copy[data-done] { color: var(--ok); border-color: var(--ok); }

/* home: hero */
.hub-hero { background: radial-gradient(900px 380px at 85% -10%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%),
                        radial-gradient(700px 340px at 0% 110%, color-mix(in srgb, var(--b) 16%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.hub-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 40px; }
.hub-hero h1 { margin-bottom: .2em; }
.hub-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; margin: 0; }
.hub-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 104px; text-align: center; box-shadow: var(--shadow-sm); }
.hub-stats dt { color: var(--muted); font-size: .8rem; }
.hub-stats dd { margin: 0; font-size: 1.5rem; font-weight: 750; }
@media (max-width: 860px) { .hub-hero-in { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; } .hub-stats { grid-template-columns: repeat(3, 1fr); } .hub-stats div { min-width: 0; } }

/* category chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.chips a { text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.chips a:hover { border-color: var(--a); }
.chips a[aria-current="page"] { background: color-mix(in srgb, var(--a) 18%, var(--card)); border-color: var(--a); color: var(--text); font-weight: 600; }

/* featured banners: a row that scrolls sideways */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 88%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.banner { scroll-snap-align: start; display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; min-height: 250px; background: linear-gradient(135deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.banner:hover { border-color: var(--a); }
.banner-text { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 22px 22px; align-items: flex-start; }
.banner-name { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 750; letter-spacing: -.01em; }
.banner-name img { border-radius: 10px; }
.banner-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.banner-art { display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; padding-top: 22px; }
.banner-art img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-top-left-radius: 12px; border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.banner-art.phone { justify-content: center; padding: 18px 18px 0; }
.banner-art.phone img { width: auto; height: 240px; max-width: none; object-fit: contain; border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.banner-art.icon-art { align-items: center; justify-content: center; padding: 18px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--a) 20%, transparent), transparent 70%); }
.banner-art .big-icon { width: 150px; height: 150px; border: 0; filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
@media (max-width: 560px) { .banner { grid-template-columns: 1fr; } .banner-text { padding: 20px 20px 0; } .banner-art { max-height: 190px; padding-left: 20px; } }

/* rows and tiles */
.section { margin-top: 28px; margin-bottom: 28px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-head h2 { margin-bottom: .1em; }
.row-head a { white-space: nowrap; font-weight: 600; text-decoration: none; }
.row-head + .muted { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; margin-top: 12px; }
.tile { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.tile:hover { border-color: var(--a); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .icon { border-radius: 16px; grid-row: span 1; }
.tile-body { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-weight: 700; font-size: 1.05rem; }
.tile-meta { color: var(--muted); font-size: .84rem; }
.tile-desc { font-size: .9rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; }
.free { color: var(--ok); font-weight: 650; }
.get { margin-left: auto; background: color-mix(in srgb, var(--a) 18%, var(--card)); color: var(--a); font-weight: 700; border-radius: 999px; padding: 3px 16px; }
.get.soon { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--card)); }
.tile:hover .get:not(.soon) { background: linear-gradient(90deg, var(--a), var(--b)); color: var(--on-accent); }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* category cards */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; margin-top: 12px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 10%, var(--card)), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); text-decoration: none; }
.cat-card:hover { border-color: var(--a); }
.cat-card b { font-size: 1.1rem; }
.cat-icons { display: flex; gap: 6px; margin-bottom: 8px; }
.cat-icons img { border-radius: 10px; }

/* new and updated list */
.new-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.new-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
.new-list a:hover { background: var(--card); border-color: var(--line); }
.new-list img { border-radius: 10px; flex: none; }
.new-list span { display: flex; flex-direction: column; }

/* developer card */
.dev-card { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 12%, var(--card)), var(--card)); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.dev-card img { border-radius: 18px; flex: none; }
.dev-card h2 { margin: .1em 0 .3em; }
.dev-card p { margin: 0 0 10px; max-width: 70ch; }
@media (max-width: 560px) { .dev-card { flex-direction: column; } }

/* store page of one app */
.page-head { padding-top: 34px; }
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--a); }
.detail-head { padding-bottom: 8px; }
.detail-top { display: flex; gap: 22px; align-items: flex-start; margin-top: 18px; }
.detail-icon { border-radius: 26px; flex: none; box-shadow: var(--shadow); background: var(--card); }
.detail-title h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.detail-title .dev { margin: 2px 0 6px; font-weight: 600; }
.detail-title .dev a { text-decoration: none; }
.detail-title .lead { margin: 0 0 10px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.badges li { font-size: .8rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.badges li.plat { color: var(--text); }
.stats { display: flex; flex-wrap: wrap; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.stats div { flex: 1 1 120px; padding: 10px 16px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { color: var(--muted); font-size: .78rem; }
.stats dd { margin: 0; font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
@media (max-width: 560px) { .detail-top { flex-direction: column; gap: 14px; } .detail-icon { width: 88px; height: 88px; border-radius: 22px; } .stats div { flex-basis: 45%; border-bottom: 1px solid var(--line); } }
.about { font-size: 1.05rem; max-width: 80ch; }

section.get-section { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 8px 22px 22px; }
section.get-section > h2:first-of-type, section.get-section > .eyebrow + h2 { margin-top: .6em; }
section.get-section > .eyebrow { margin-top: 16px; }
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 0 24px; margin: 0; }
.info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* screenshots: a sideways row */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(520px, 85%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shots.phone { grid-auto-columns: min(220px, 60%); }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 14px; border: 1px solid var(--line); width: 100%; }
.shots figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; }

/* sections and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* download box */
.dl-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.dl-box .btn.big { width: 100%; }
.dl-box .file + .file { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dl-box .file .btn { width: 100%; margin-bottom: 10px; }
.dl-box .plain { margin: 6px 0; }
.also { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.meta { display: grid; gap: 6px; margin: 18px 0 12px; }
.meta div { display: flex; gap: 10px; }
.meta dt { color: var(--muted); min-width: 70px; }
.meta dd { margin: 0; min-width: 0; }
.hash { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.hash .label { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.sha { font-size: .8rem; word-break: break-all; padding: 6px 8px; }
.preview-note { margin: 12px 0 0; color: var(--warn); font-size: .92rem; }
.pill { font-size: .72rem; font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; vertical-align: middle; letter-spacing: 0; }
.tabpanel h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.caps th[scope="row"] { color: var(--text); font-weight: 600; min-width: 180px; }
.caps td { min-width: 150px; }

/* lists, steps, tables */
.ticks, .plain { padding-left: 0; list-style: none; }
.ticks li, .plain li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plain li::before { content: "•"; position: absolute; left: 8px; color: var(--muted); }
.steps { padding-left: 1.3em; }
.steps li { margin: 10px 0; padding-left: 4px; }
.steps li::marker { color: var(--a); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.callout { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--card)); padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.callout.danger { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--card)); }
.next { margin-top: 20px; }

/* code with copy */
.code { position: relative; margin: 10px 0; }
.code pre { background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 42px 14px 12px; overflow-x: auto; margin: 0; }
.code pre code { background: none; border: 0; padding: 0; }
.code .copy { position: absolute; top: 8px; right: 8px; }

/* tabs: without JS every panel shows with its own heading; with JS only the chosen one */
.tablist { display: none; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.js .tablist { display: flex; }
.tablist button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 14px; cursor: pointer; }
.tablist button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--a); font-weight: 600; }
.js .tabpanel[hidden] { display: none; }
.js .tab-title { display: none; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; background: var(--bg2); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in p { margin: 4px 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-brand img { border-radius: 6px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* First-visit tour (tour.js): a ring circles a feature, a floating card explains it. */
.tour-ring { position: fixed; z-index: 1000; border-radius: 22px; pointer-events: none;
  border: 2px solid var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b) 45%, transparent), 0 0 0 9999px rgba(5,8,18,.62);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; animation: tour-pulse 1.8s ease-in-out infinite; }
.tour-ring.round { border-radius: 50%; }
.tour-ring.center { left: 50%; top: 50%; width: 0; height: 0; border: 0; animation: none; }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--b) 18%, transparent), 0 0 0 9999px rgba(5,8,18,.62); } }
.tour-box { position: fixed; z-index: 1001; width: min(340px, calc(100vw - 24px)); background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 14px;
  transition: left .25s ease, top .25s ease; }
.tour-box h2 { margin: 2px 0 6px; font-size: 1.12rem; }
.tour-box p { margin: 0 0 12px; line-height: 1.5; }
.tour-count { color: var(--muted); font-size: .8rem; margin: 0 !important; letter-spacing: .04em; text-transform: uppercase; }
.tour-nav { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.tour-nav .btn { padding: 7px 14px; font: inherit; cursor: pointer; }
.tour-nav .btn:disabled { opacity: .45; cursor: default; }
.tour-skip { margin-right: auto; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 2px; text-decoration: underline; }
.tour-skip:hover { color: var(--text); }
.tour-link { background: none; border: 0; color: var(--b); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-box { animation: none; transition: none; } }
