/* vnlogos site. Dark by default; the toggle switches to light. */
/* Sơn mài (lacquer) by default: warm black, cream ink, gold leaf, vermilion.
   Light theme is white paper: white ground, warm-grey lines, the same gold and vermilion. */
:root {
  --bg: #120d0a;
  --bg-2: #160f0c;
  --panel: #1a130f;
  --raise: #221913;
  --ink: #f6eedf;
  --ink-2: #d9ccb8;
  --muted: #a3927c;
  --line: #2b2019;
  --line-2: #3c2e24;
  --accent: #e7b14c;
  --gold: #e7b14c;
  --red: #d8402c;
  --accent-ink: #1a1207;
  --plate: #fffaf0;
  --code: #150f0c;
  --glow: 0 0 0 1px rgb(231 177 76 / .08), 0 20px 44px -20px rgb(0 0 0 / .85);
  --radius: 12px;
  --wrap: 1180px;
  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --tok-k: #ff8a70; --tok-s: #e7c178; --tok-t: #9cc3ff; --tok-c: #7d6d5c;
  --nb-rock: #e7b14c; --nb-leaf: #86b45e; --nb-rice: #8f7d3a; --nb-rice-2: #5f6e35; --nb-water: #6fb7c4; --nb-red: #ec5a40; --nb-cream: #f6eedf;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #fbfaf8; --panel: #f8f7f4; --raise: #ffffff; --ink: #17120e; --ink-2: #3f362e; --muted: #6b6158;
  --line: #ebe7e1; --line-2: #dcd5cb; --accent: #b04a17; --gold: #93650f; --red: #c0321f; --accent-ink: #ffffff;
  --plate: #ffffff; --code: #f8f7f4;
  --glow: 0 0 0 1px rgb(40 30 20 / .05), 0 16px 36px -20px rgb(40 30 20 / .22);
  --tok-k: #c0321f; --tok-s: #8a5a10; --tok-t: #1e5aa8; --tok-c: #8c8070;
  --nb-rock: #9a6a14; --nb-leaf: #4f7d34; --nb-rice: #bba65e; --nb-rice-2: #93a565; --nb-water: #2f7f93; --nb-red: #c0321f; --nb-cream: #3f362e;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.frame { max-width: var(--wrap); margin: 0 auto; border-inline: 1px solid var(--line); }
.cross { position: relative; border-top: 1px solid var(--line); }
.cross::before, .cross::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none; z-index: 2;
  background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .7; transform: scale(.7);
}
.cross::before { left: -6px; } .cross::after { right: -6px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.vn-mark { color: var(--ink); flex: none; }
.brand .vn-mark { width: 28px; height: 28px; }
.brand .word span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 2px; }
.nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: 14px; padding: 7px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 200px; padding: 0 8px 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s, transform .1s; }
.kbtn:hover { color: var(--ink); border-color: var(--muted); }
.kbtn:active { transform: scale(.98); }
.kbtn kbd { margin-left: auto; }
kbd { font: 500 11px/1 var(--mono); border: 1px solid var(--line-2); background: var(--raise); border-radius: 5px; padding: 3px 5px; color: var(--muted); }
.ibtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.ibtn:hover { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.ibtn:active { transform: scale(.93); }
.ibtn svg { width: 17px; height: 17px; }
.gh { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raise); font-size: 13.5px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: border-color .15s, transform .1s, box-shadow .15s; }
.gh:hover { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.gh:active { transform: scale(.97); }
.gh > svg:first-child { width: 17px; height: 17px; }
.gh-count { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line-2); font: 600 12.5px/1 var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.gh-count[hidden] { display: none; }
/* A yellow peace sign on the corner that giggles "hi hi" every few seconds, and nonstop on hover. */
.gh-peace { position: absolute; top: -11px; right: -9px; width: 18px; height: 18px; pointer-events: none; }
.gh-peace svg { width: 100%; height: 100%; overflow: visible; fill: #f6c445; stroke: #b9800f; stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 2px 2.5px rgb(0 0 0 / .35)); transform-origin: 50% 90%; animation: peace-wag 4s ease-in-out infinite; }
.gh-peace .fold { fill: none; stroke-linecap: round; }
.gh-peace i { position: absolute; left: 72%; top: -4px; font-style: italic; font-weight: 700; font-size: 11px; line-height: 1; color: var(--gold); letter-spacing: .02em; white-space: nowrap; opacity: 0; text-shadow: 0 1px 2px rgb(0 0 0 / .3); animation: peace-hi 4s ease-out infinite; }
.gh-peace i + i { left: 135%; top: 4px; font-size: 10px; animation-delay: .18s; }
.gh:hover .gh-peace svg, .gh:focus-visible .gh-peace svg { animation-duration: 1.1s; }
.gh:hover .gh-peace i, .gh:focus-visible .gh-peace i { animation-duration: 1.1s; }
.gh:hover .gh-peace i + i, .gh:focus-visible .gh-peace i + i { animation-delay: .25s; }
@keyframes peace-wag {
  0%, 58%, 100% { transform: rotate(0) scale(1); }
  64% { transform: rotate(-16deg) scale(1.15); }
  72% { transform: rotate(14deg) scale(1.15); }
  80% { transform: rotate(-10deg) scale(1.1); }
  88% { transform: rotate(6deg) scale(1.05); }
}
@keyframes peace-hi {
  0%, 58% { opacity: 0; transform: translate(0, 4px) scale(.6); }
  66% { opacity: 1; transform: translate(2px, -6px) scale(1.05); }
  84% { opacity: 1; transform: translate(5px, -13px) scale(1); }
  96%, 100% { opacity: 0; transform: translate(7px, -18px) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { .gh-peace svg, .gh-peace i { animation: none; } }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }
/* EN / VI: two letters each, the current one raised. On phones only the other one shows. */
.lang { display: inline-flex; height: 36px; padding: 3px; gap: 2px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); }
.lang a { display: inline-grid; place-items: center; min-width: 30px; padding: 0 6px; border-radius: 6px; font: 600 11.5px/1 var(--font); letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.lang a[href]:hover { color: var(--ink); background: var(--raise); }
.lang a[aria-current] { color: var(--ink); background: var(--raise); box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.lang a[aria-disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Buttons, pills, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--raise); font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 7px 12px 7px 10px; }
.pill i { width: 8px; height: 8px; background: var(--red); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s, color .15s, transform .1s; text-decoration: none; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font: 500 11px/1 var(--mono); opacity: .55; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 550; cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ---------- Hero: copy beside a Đông Sơn drum face ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 640px; padding: 56px 40px 48px 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(60% 70% at 78% 50%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 4.9vw, 62px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin: 22px 0 10px; text-wrap: balance; }
.viet { margin: 0 0 18px; font-style: italic; font-size: clamp(18px, 1.8vw, 22px); color: var(--gold); letter-spacing: -0.01em; }
.hero .sub { color: var(--muted); margin: 0 0 26px; max-width: 32em; font-size: 15.5px; text-wrap: pretty; }
.find { display: flex; align-items: center; gap: 8px; width: min(460px, 100%); height: 48px; padding: 0 5px 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.find:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
.find svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.find input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14.5px; }
.find button { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--red); color: #fff8ec; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .1s, filter .15s; }
.find button:hover { filter: brightness(1.08); }
.find button:active { transform: scale(.96); }
.cmd { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 4px 4px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--code); font: 13px/1 var(--mono); color: var(--ink-2); max-width: 100%; }
.cmd b { color: var(--gold); font-weight: 500; }
.cmd .ibtn { width: 32px; height: 32px; }
.cmd .ibtn svg { width: 14px; height: 14px; }
.hero-more { font: 500 13px/1 var(--font); color: var(--ink-2); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; padding: 0 10px; height: 32px; border-left: 1px solid var(--line-2); }
.hero-more:hover { color: var(--ink); }
.hero-more svg { width: 14px; height: 14px; transition: transform .15s; }
.hero-more:hover svg { transform: translateX(3px); }
.drum { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; color: var(--gold); }
.drum-svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 400s linear infinite; }
.orbit { position: absolute; inset: 0; animation: spin var(--spin, 120s) linear infinite; }
.orbit.o2 { --spin: 180s; animation-direction: reverse; }
.orbit .t { position: absolute; width: 9.5%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.orbit.o2 .t { width: 8.2%; }
.orbit .t img { width: 100%; height: 100%; border-radius: 26%; box-shadow: 0 0 0 2px var(--bg), 0 10px 24px -10px rgb(0 0 0 / .8); animation: spin var(--spin, 120s) linear infinite reverse; transition: scale .25s cubic-bezier(.2,.8,.2,1); }
.orbit.o2 .t img { animation-direction: normal; }
.orbit .t:hover img { scale: 1.12; }
.drum:hover .orbit, .drum:hover .orbit .t img, .drum:hover .drum-svg { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
[data-enter] > * { animation: enter .7s cubic-bezier(.2,.8,.2,1) both; }
[data-enter] > :nth-child(2) { animation-delay: .05s; } [data-enter] > :nth-child(3) { animation-delay: .1s; }
[data-enter] > :nth-child(4) { animation-delay: .15s; } [data-enter] > :nth-child(5) { animation-delay: .2s; } [data-enter] > :nth-child(6) { animation-delay: .25s; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.eyebrow { display: inline-block; font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .04em; margin-bottom: 12px; }

/* ---------- Vẽ tay: the drawing reel ---------- */
.drawn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.dr-copy .lead { margin-bottom: 22px; }
.dr-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dr-chapters button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink-2); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s, color .15s; }
.dr-chapters button:hover { border-color: var(--muted); color: var(--ink); }
.dr-chapters b { font: 500 11px/1 var(--mono); color: var(--muted); }
.dr-chapters span { display: grid; min-width: 0; font-size: 13px; font-weight: 550; }
.dr-chapters small { font: 400 11px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-chapters i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); }
.dr-chapters button[aria-current] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--ink); }
.dr-chapters button[aria-current] b { color: var(--gold); }
.dr-chapters button[aria-current] i { width: calc(var(--p, 0) * 100%); }
.reel { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0f0c0a; box-shadow: var(--glow); }
.reel-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; color: #231a13;
  background: radial-gradient(120% 90% at 30% 20%, #fffaf0, #f3e9d6 70%, #e9dcc2),
    repeating-linear-gradient(0deg, transparent 0 27px, rgb(120 90 50 / .07) 27px 28px); background-blend-mode: multiply; }
.reel-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgb(90 60 20 / .18); }
.reel-stage { position: absolute; inset: 13% 10% 17%; }
.reel-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rl-line { stroke-width: .95; color: #231a13; }
.rl-line * { stroke-dashoffset: 0; }
.rl-ghost { opacity: .16; filter: grayscale(1) contrast(1.4); }
.reel-pen { position: absolute; left: 0; top: 0; width: 44px; height: 44px; pointer-events: none; z-index: 2; filter: drop-shadow(6px 10px 6px rgb(60 40 20 / .3)); transition: opacity .3s; will-change: transform; }
.reel-pen.off { opacity: 0; }
.reel-rec, .reel-count { position: absolute; top: 14px; z-index: 2; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: #6b5a45; }
.reel-rec { left: 16px; display: inline-flex; align-items: center; gap: 7px; }
.reel-rec i { width: 8px; height: 8px; border-radius: 50%; background: #d8402c; animation: rec 1.6s ease-in-out infinite; }
.reel.paused .reel-rec i { animation: none; opacity: .4; }
@keyframes rec { 50% { opacity: .25; } }
.reel-count { right: 16px; }
.reel-cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 650; color: #231a13; }
.reel-cap b { font: 500 11px/1 var(--mono); color: #b04a17; }
.reel-cap small { font: 400 11.5px/1 var(--mono); color: #6b5a45; }
.reel-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px 0 8px; color: #f6eedf; }
.reel-bar .ibtn { color: inherit; width: 34px; height: 34px; }
.reel-bar svg { width: 18px; height: 18px; }
.reel .i-play, .reel.paused .i-pause { display: none; }
.reel.paused .i-play { display: block; }
.reel-track { position: relative; flex: 1; height: 18px; cursor: pointer; border-radius: 4px; }
.reel-track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: rgb(246 238 223 / .18); }
.reel-track i { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: #e7b14c; }
.reel-track i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #f6eedf; }
.reel-track:focus-visible { outline: 2px solid #e7b14c; outline-offset: 2px; }
.reel-time { font: 12px/1 var(--mono); color: rgb(246 238 223 / .7); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .reel-rec i { animation: none; } }

/* ---------- Marquee ---------- */
.strip { padding: 44px 0 40px; text-align: center; overflow: hidden; }
.strip > p { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; padding: 0 16px; }
.rail { display: flex; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rail + .rail { margin-top: 10px; }
.rail-in { display: flex; gap: 10px; padding-right: 10px; flex: none; animation: slide var(--t, 60s) linear infinite; }
.rail.rev .rail-in { animation-direction: reverse; }
.rail:hover .rail-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.tag { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); white-space: nowrap; font-size: 13.5px; font-weight: 550; text-decoration: none; transition: border-color .15s, transform .15s; }
.tag:hover { border-color: var(--muted); transform: translateY(-2px); }
.tag .sq { width: 28px; height: 28px; border-radius: 7px; }
.tag .plate { height: 28px; padding: 0 8px; border-radius: 7px; background: var(--plate); display: grid; place-items: center; }
.tag .plate img { height: 15px; width: auto; max-width: 80px; }

/* ---------- Catalog ---------- */
.sec { padding: 64px 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 650; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0; max-width: 36em; }
.bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.bar .find { flex: 1 1 320px; width: auto; height: 42px; }
.count { font: 12.5px/1 var(--mono); color: var(--muted); margin-left: auto; white-space: nowrap; }
.bar .shuffle { height: 36px; padding: 0 12px; font-size: 13px; }
.bar .shuffle[hidden] { display: none; }
.cats { margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; overflow: hidden; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--glow); }
.card:active { transform: translateY(0) scale(.99); }
.card .stage { height: 118px; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 40%, var(--raise), var(--panel)); }
.card .stage img.sq { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 8px 22px -10px rgb(0 0 0 / .7); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.card:hover .stage img.sq { transform: scale(1.06); }
.card .plate { background: var(--plate); border-radius: 10px; padding: 12px 14px; width: calc(100% - 24px); height: 58px; display: grid; place-items: center; }
.card .plate img { max-height: 26px; max-width: 100%; width: auto; }
.card .plate b { color: #111; font-size: 15px; }
/* Full names, never cut: the tag sits above as an eyebrow so tags line up across a row, and the name wraps (balanced) below it. */
.card .meta { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 12px 13px; border-top: 1px solid var(--line); }
.card .meta span { font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.card .meta small { order: -1; font: 500 10px/1.2 var(--mono); letter-spacing: .06em; color: var(--muted); }
.card:hover .meta small { color: var(--ink-2); }
.card .go { position: absolute; top: 9px; right: 9px; width: 15px; height: 15px; color: var(--muted); opacity: 0; transition: opacity .15s, transform .15s; }
.card:hover .go { opacity: 1; transform: translate(1px, -1px); }
.mono .card .stage img.sq, .mono .tile-mono { filter: grayscale(1) contrast(1.05); }
.empty { padding: 56px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty a { color: var(--ink); }

/* ---------- Ways ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.box { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px; }
.box h3 { margin: 14px 0 4px; font-size: 16px; letter-spacing: -0.01em; }
.box p { margin: 0; color: var(--muted); font-size: 14px; }
.term { border: 1px solid var(--line); border-radius: 10px; background: var(--code); font: 13px/1.75 var(--mono); padding: 14px 16px; color: var(--ink-2); overflow-x: auto; }
.term .ok { color: var(--accent); }
.term .dim { color: var(--muted); }
.duo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.duo .plate { flex: 1 1 140px; height: 70px; border-radius: 10px; background: var(--plate); display: grid; place-items: center; padding: 0 14px; }
.duo .plate img { max-height: 28px; width: auto; }

/* ---------- Logo page ---------- */
.crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); }
.crumbs .back:hover { border-color: var(--muted); }
.crumbs .back svg { width: 14px; height: 14px; }
.crumbs b { color: var(--ink); font-weight: 550; }
.page-head { padding: 34px 32px 26px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -0.045em; line-height: 1.04; margin: 22px 0 12px; font-weight: 650; }
.page-head p { color: var(--muted); margin: 0; max-width: 42em; font-size: 15.5px; }
.show { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; padding: 0 32px 48px; }
.viewer { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.canvas { position: relative; flex: 1; min-height: 340px; display: grid; place-items: center; padding: 40px; transition: background .25s; }
.canvas[data-bg="light"] { background: #ffffff; }
.canvas[data-bg="dark"] { background: #0c0c0e; }
.canvas[data-bg="grid"] { background: repeating-conic-gradient(#e9e9ec 0 25%, #ffffff 0 50%) 0 0 / 20px 20px; }
.canvas[data-bg="brand"] { background: var(--brand); }
.canvas img.sq { width: min(190px, 46%); aspect-ratio: 1; height: auto; border-radius: 22%; box-shadow: 0 22px 50px -24px rgb(0 0 0 / .55); }
.canvas img.wm { width: min(420px, 82%); height: auto; max-height: 120px; object-fit: contain; }
.canvas[data-bg="dark"] img.wm.on-dark-pad { background: #fff; padding: 18px 22px; border-radius: 14px; }
.canvas .none { font-size: 34px; font-weight: 700; color: #111; }
.canvas-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.canvas-tools .ibtn { background: rgb(20 20 24 / .72); color: #fff; border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(6px); }
.canvas-tools .ibtn:hover { background: rgb(20 20 24 / .9); }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); cursor: pointer; transition: transform .1s, box-shadow .15s; }
.dots button:active { transform: scale(.92); }
.dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--muted); }
.dots [data-bg="light"] { background: #fff; } .dots [data-bg="dark"] { background: #0c0c0e; }
.dots [data-bg="grid"] { background: repeating-conic-gradient(#d4d4d8 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.facts { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); align-self: start; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; min-height: 50px; }
.fact:last-child { border-bottom: 0; }
.fact > span:first-child { color: var(--muted); flex: none; }
.fact .val { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.fact a { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.fact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fact a svg { width: 13px; height: 13px; }
.mini { font: 11.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--raise); color: var(--ink-2); text-decoration: none; }
.swatch { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px 0 5px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--raise); font: 12px/1 var(--mono); cursor: pointer; transition: border-color .15s, transform .1s; }
.swatch:hover { border-color: var(--muted); }
.swatch:active { transform: scale(.97); }
.swatch i { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.side-cta { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: linear-gradient(150deg, rgb(182 226 122 / .1), transparent 60%), var(--panel); display: flex; gap: 12px; align-items: center; }
.side-cta .vn-mark { width: 46px; height: 46px; }
.side-cta p { margin: 0; font-size: 13px; color: var(--muted); }
.side-cta b { display: block; color: var(--ink); font-size: 14px; }
/* "Use this logo": CLI and tabbed code on the left, the SVG source on the right, sized to the
   left column (height 0 + min-height 100% keeps a long file from stretching the row). */
.use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.use .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.use pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.blk-foot { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.blk-foot code { font-size: .92em; }
.code-tabs { flex: 1; display: flex; flex-direction: column; min-height: 228px; }
.code-tabs .pane { flex: 1; display: flex; flex-direction: column; }
.code-tabs .pane[hidden] { display: none; }
.code-tabs .pane pre { flex: 1; }
.svg-src { display: flex; flex-direction: column; height: 0; min-height: 100%; min-width: 0; }
.svg-src .blk-head { flex: none; }
.blk-acts { display: inline-flex; gap: 2px; }
.svg-src pre { flex: 1; min-height: 0; overflow: auto; font-size: 11.5px; line-height: 1.65; word-break: break-all; scrollbar-width: thin; }
.svg-src pre a { color: var(--ink-2); }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.dl-label { font: 12px/1 var(--mono); color: var(--muted); margin-right: 6px; }
.dl-row .btn { height: 34px; padding: 0 12px; gap: 7px; font-size: 13px; }
.dl-row .btn svg { width: 15px; height: 15px; }
.dl-docs { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.dl-docs:hover { color: var(--ink); }
.dl-docs svg { width: 15px; height: 15px; }
.blk { border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: hidden; }
.blk-head { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--muted); }
.blk-head .ibtn { width: 30px; height: 30px; }
.blk-head .ibtn svg { width: 14px; height: 14px; }
.blk pre { margin: 0; padding: 14px; overflow-x: auto; font: 12.5px/1.7 var(--mono); color: var(--ink-2); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.tm { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.tm a { color: var(--ink-2); }
.tok-k { color: var(--tok-k); } .tok-s { color: var(--tok-s); } .tok-t { color: var(--tok-t); } .tok-c { color: var(--tok-c); font-style: italic; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; padding: 28px 14px; border-right: 1px solid var(--line); }
.side h5 { margin: 18px 10px 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.side h5:first-of-type { margin-top: 0; }
.side a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.side a:hover { background: var(--panel); color: var(--ink); }
.side a.on { background: var(--panel); color: var(--ink); font-weight: 550; }
.side-toggle { display: none; }
.doc { padding: 36px 52px 96px; min-width: 0; }
.doc > .crumbs { margin-bottom: 6px; }
.doc h1 { font-size: 40px; letter-spacing: -0.04em; margin: 10px 0 10px; }
.doc .intro { color: var(--muted); font-size: 16.5px; margin: 0 0 30px; }
.doc h2 { font-size: 24px; margin: 52px 0 12px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc .blk { margin: 12px 0 16px; }
.doc a:not(.btn) { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.doc a:not(.btn):hover { text-decoration-color: var(--ink); }
:not(pre) > code { font: .86em var(--mono); background: var(--raise); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* Field names, props and commands never break mid-word; the first column sizes to them. */
td code { white-space: nowrap; overflow-wrap: normal; }
td:first-child { width: 1%; white-space: nowrap; line-height: 2; }
.doc .table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.doc .table-wrap table { margin: 0; }
th { color: var(--muted); font-weight: 550; font-size: 12px; }
.note { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--ink-2); margin: 16px 0; }
.toc { position: sticky; top: 60px; align-self: start; padding: 36px 14px; }
.toc h5 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.toc a { display: block; padding: 4px 0 4px 12px; font-size: 13px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-color: var(--ink); }
.tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font: 500 12.5px/1 var(--mono); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.tabs button svg { width: 15px; height: 15px; flex: none; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--raise); border-color: var(--line-2); box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.blk[data-tabs] > .blk-head { height: auto; min-height: 46px; padding: 6px 6px 6px 6px; gap: 8px; }
.blk.pm pre { font-size: 13.5px; padding: 16px 18px; }
.blk.pm .dim { color: var(--muted); user-select: none; }
.blk.pm pre b { color: var(--gold); font-weight: 500; }
.pm-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 18px; width: min(460px, 100%); }
.pm-label { font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .04em; }
.pm-row .blk { flex: 1; min-width: 0; border-radius: 14px; }
@media (max-width: 560px) {
  .pm-row { flex-direction: column; }
  .tabs button { padding: 0 8px; gap: 5px; }
}

/* ---------- Palette and toast ---------- */
dialog.palette { border: 1px solid var(--line-2); border-radius: 14px; padding: 0; background: var(--raise); color: var(--ink); width: min(620px, calc(100vw - 24px)); margin-top: 12vh; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .7); }
dialog.palette::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(3px); }
dialog.palette[open] { animation: pop .16s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.p-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.p-in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.p-in input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; outline: none; font-size: 15.5px; }
.p-list { list-style: none; margin: 0; padding: 6px; max-height: 420px; overflow: auto; }
.p-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; text-decoration: none; }
.p-list a[aria-selected="true"], .p-list a:hover { background: var(--panel); }
.p-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--plate); }
.p-ico img.sq { width: 34px; height: 34px; }
.p-ico img.wm { max-width: 30px; max-height: 16px; }
.p-name { font-size: 14px; font-weight: 550; }
.p-meta { margin-left: auto; font: 11px/1.3 var(--mono); color: var(--muted); text-align: right; }
.p-empty { padding: 30px; text-align: center; color: var(--muted); }
.p-foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 200; background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 9px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 32px 40px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .docs { grid-template-columns: 210px minmax(0, 1fr); }
  .toc { display: none; }
  .doc { padding: 32px 36px 80px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 48px 24px 40px; min-height: 0; }
  .drum { max-width: 420px; }
  .drawn { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sec { padding: 52px 20px; }
  .ways, .use, .show { grid-template-columns: minmax(0, 1fr); }
  .svg-src { height: auto; min-height: 0; }
  .svg-src pre { max-height: 300px; }
  .code-tabs { min-height: 0; }
  .show { padding: 0 20px 40px; }
  .page-head { padding: 28px 20px 22px; }
  .kbtn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .kbtn span, .kbtn kbd, .gh span, .gh .gh-count { display: none; }
  .gh { width: 36px; padding: 0; justify-content: center; }
  .lang { padding: 0; border-color: transparent; background: none; }
  .lang a { width: 36px; height: 34px; }
  .lang a[aria-current], .lang a[aria-disabled] { display: none; }
  .lang a[href]:hover { background: var(--panel); }
  .gh-peace { top: -9px; right: -7px; width: 14px; height: 14px; }
  .docs { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .side-toggle { display: flex; width: 100%; height: 44px; align-items: center; justify-content: space-between; border: 0; background: none; font-weight: 550; cursor: pointer; padding: 0 4px; }
  .side-links { display: none; padding-bottom: 10px; }
  .side.open .side-links { display: block; }
  .doc { padding: 28px 20px 72px; }
  .foot { padding: 24px 20px 36px; }
}
@media (max-width: 560px) {
  .frame { border-inline: 0; }
  .cross::before, .cross::after { display: none; }
  .top-in { padding: 0 14px; gap: 10px; }
  .nav a { padding: 7px 8px; }
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 36px; }
  .dr-chapters button { padding: 8px 10px; gap: 8px; }
  .dr-chapters small { display: none; }
  .cmd { max-width: 100%; }
  .cmd code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sec { padding: 44px 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count { margin-left: 0; }
  .chip { height: 36px; }
  .canvas { min-height: 260px; padding: 28px; }
  .show { padding: 0 16px 36px; }
  .page-head { padding: 24px 16px 20px; }
  .doc { padding: 24px 16px 64px; }
  .doc h1 { font-size: 32px; }
  .foot { padding: 22px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- One-colour (mask) drawing ---------- */
.mask { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.card .plate .mask { height: 26px; max-width: 100%; color: var(--ink); display: none; }
.grid.mono .card .plate.can-mono { background: transparent; }
.grid.mono .card .plate.can-mono img { display: none; }
.grid.mono .card .plate.can-mono .mask { display: block; }
.duo .plate.dark { background: #0c0c0e; border: 1px solid var(--line-2); color: #fff; }
.duo .plate .mask { height: 28px; }
.canvas .wm-mask { display: none; width: min(420px, 82%); max-height: 120px; color: #111; }
.canvas.mono-on .wm-mask { display: block; }
.canvas.mono-on img.wm { display: none; }
.canvas[data-bg="dark"] .wm-mask, .canvas[data-bg="brand"] .wm-mask { color: #fff; }

/* Elements with display set (.card is flex) must still honour the hidden attribute. */
[hidden] { display: none !important; }

/* Dishes */
.card .stage img.dish { width: 76px; height: 76px; border-radius: 16px; box-shadow: 0 8px 22px -12px rgb(0 0 0 / .6); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.card:hover .stage img.dish { transform: scale(1.06); }
.mono .card .stage img.dish { filter: grayscale(1) contrast(1.05); }
.canvas img.dish-art { width: min(260px, 62%); height: auto; aspect-ratio: 1; }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.region { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; min-width: 0; }
.region h3 { margin: 0 0 12px; font-size: 15px; }
.seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seals a { display: block; border-radius: 50%; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.seals a:hover { transform: translateY(-2px) rotate(-4deg); }
.seals a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.seals img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .regions { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .seals a, .card .stage img.dish { transition: none; } }

/* ---------- Con số: numbers band ---------- */
.stats { border-top: 1px solid var(--line); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats dl > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 22px 24px; border-left: 1px solid var(--line); }
.stats dl > div:first-child { border-left: 0; }
.stats dd { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dl > div:nth-child(odd) dd { color: var(--gold); }
.stats dt { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.stats dt small { display: block; font: 11px/1.4 var(--mono); color: var(--muted); font-weight: 400; }

/* ---------- Logo Studio ---------- */
.ls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.ls-stage { display: grid; gap: 14px; position: sticky; top: 84px; }
.ls-canvas { display: grid; place-items: center; aspect-ratio: 1.15; border: 1px solid var(--line); border-radius: 16px;
  background: repeating-conic-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 0 25%, transparent 0 50%) 0 0 / 22px 22px, radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--gold) 9%, var(--panel)), var(--panel)); }
.ls-canvas img { width: min(280px, 62%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 22px 30px rgb(0 0 0 / .28)); }
.ls-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-sizes > span { display: flex; align-items: center; justify-content: center; gap: 18px; height: 84px; border-radius: 12px; border: 1px solid var(--line); }
.ls-on-light { background: #ffffff; }
.ls-on-dark { background: #141110; }
.ls-dl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ls-dl .seg { margin-right: auto; }
.ls-ctl { display: grid; gap: 16px; min-width: 0; }
.ls-pick { display: grid; gap: 10px; }
.ls-pick .find { width: 100%; height: 42px; }
.ls-picks { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.ls-picks button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 5px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 12.5px; cursor: pointer; max-width: 220px; transition: border-color .15s, background .15s, transform .1s; }
.ls-picks button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-picks button:hover { border-color: var(--muted); color: var(--ink); }
.ls-picks button:active { transform: scale(.97); }
.ls-picks button[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); color: var(--ink); }
.ls-picks img, .ls-picks .mask { width: 24px; height: 24px; border-radius: 6px; flex: none; object-fit: cover; }
.ls-picks .mask { color: var(--ink); border-radius: 0; }
.ls-none { margin: 0; font-size: 13px; color: var(--muted); align-self: center; }
.ls-rows { display: grid; gap: 2px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ls-row { display: flex; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; }
.ls-row + .ls-row { border-top: 1px solid var(--line); }
.ls-row[hidden] { display: none; }
.ls-row > span:first-child { width: 86px; flex: none; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.ls-range input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--gold); }
.ls-range output { width: 40px; font: 12px/1 var(--mono); color: var(--muted); text-align: right; }
.sws { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { position: relative; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(127 127 127 / .35); cursor: pointer; transition: transform .1s; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"], .sw-pick.on { box-shadow: inset 0 0 0 1px rgb(127 127 127 / .35), 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.sw-own::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid #fff; mix-blend-mode: difference; }
.sw-none { background: linear-gradient(135deg, transparent 46%, var(--red) 46% 54%, transparent 54%), var(--plate); }
.sw-pick { display: inline-grid; overflow: hidden; background: conic-gradient(#e33, #ec3, #3c5, #3be, #44e, #c3c, #e33); }
.sw-pick input { width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw-line { margin-left: 4px; }

/* ---------- Mã MCC ---------- */
/* What's inside: a dark stage, the same in both themes. The canvas draws brand logos in
   tiny dots inside .ds-art and morphs them into each other; loose dust drifts around. */
.dotshow { --st-ink: #f6eedf; --st-gold: #e7b14c; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; min-height: 480px; padding: 40px 56px 40px 44px; border: 1px solid var(--line); border-radius: 18px; color: var(--st-ink);
  background: radial-gradient(circle, rgba(246, 238, 223, .07) .9px, transparent 1.4px) 0 0 / 12px 12px, radial-gradient(55% 85% at 78% 50%, rgba(231, 177, 76, .12), transparent 70%), #14100c; }
.ds-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ds-copy { display: grid; justify-items: start; min-width: 0; }
.ds-eye { display: inline-flex; align-items: center; gap: 9px; font: 500 12px/1 var(--mono); letter-spacing: .08em; color: rgba(246, 238, 223, .6); font-variant-numeric: tabular-nums; }
.ds-eye::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st-gold); box-shadow: 0 0 0 3px rgba(231, 177, 76, .2); }
#ds-name { margin: 18px 0 8px; font-size: clamp(32px, 4.4vw, 56px); font-weight: 650; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
#ds-cat { font: 12.5px/1.4 var(--mono); color: rgba(246, 238, 223, .6); }
.ds-open { margin-top: 22px; font-size: 13.5px; font-weight: 550; color: var(--st-ink); text-decoration: none; border-bottom: 1px solid rgba(246, 238, 223, .3); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.ds-open:hover { color: var(--st-gold); border-color: var(--st-gold); }
.ds-picks { display: flex; flex-wrap: wrap; gap: 8px 7px; max-width: 290px; margin-top: 40px; }
.ds-picks button { position: relative; padding: 4px; border: 1px solid rgba(246, 238, 223, .14); border-radius: 12px; background: rgba(246, 238, 223, .04); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.ds-picks button:hover { border-color: rgba(246, 238, 223, .35); transform: translateY(-1px); }
.ds-picks button[aria-pressed="true"] { border-color: var(--st-gold); background: rgba(231, 177, 76, .1); }
.ds-picks img { display: block; width: 40px; height: 40px; border-radius: 8px; }
.ds-picks img.ds-line { padding: 6px; box-sizing: border-box; background: #f6eedf; }
.ds-picks i { position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--st-gold); opacity: 0; transition: opacity .2s; }
.ds-picks button[aria-pressed="true"] i { opacity: 1; }
.ds-art { width: 400px; aspect-ratio: 1; }

/* ---------- Bảng màu ---------- */
.cw { display: grid; gap: 12px; }
.cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.cw-grid button { aspect-ratio: 1; border: 0; border-radius: 5px; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .15s; }
.cw-grid button:hover, .cw-grid button:focus-visible { transform: scale(1.35); z-index: 1; position: relative; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink), 0 8px 18px -6px rgb(0 0 0 / .6); }
.cw-read { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cw-chip { width: 40px; height: 40px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.cw-read > span:nth-child(2) { min-width: 0; }
.cw-read b { display: block; font-size: 14.5px; font-weight: 600; }
.cw-read small { font: 12px var(--mono); color: var(--muted); }
.cw-sq { width: 36px; height: 36px; border-radius: 9px; margin-left: auto; }
.cw-plate { margin-left: auto; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--plate); display: grid; place-items: center; }
.cw-plate img { height: 18px; width: auto; max-width: 110px; }
.cw-open { font-size: 13px; color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; }
.cw-open:hover { color: var(--ink); border-color: var(--muted); }
.cw-read > .cw-chip + span:last-child { margin-right: auto; }

/* ---------- Ý tưởng ---------- */
.ideas { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.phone { border: 1px solid var(--line-2); border-radius: 34px; padding: 22px 16px 18px; background: var(--raise); box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px var(--line-2), 0 40px 70px -40px rgb(0 0 0 / .9); position: relative; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 64px; height: 5px; border-radius: 9px; background: var(--line-2); }
.ph-top { display: grid; gap: 2px; padding: 8px 6px 14px; }
.ph-top span { font-size: 12.5px; color: var(--muted); }
.ph-top b { font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ph-cats, .ph-list { list-style: none; margin: 0; padding: 0; }
.ph-cats { display: grid; gap: 9px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ph-cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: 12px; }
.ph-cats em { font: normal 11px var(--mono); color: var(--muted); }
.ph-cats i { grid-column: 1 / -1; height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--red), var(--gold)); width: var(--w); }
.ph-list { margin-top: 10px; display: grid; }
.ph-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 550; }
.ph-list li:last-child { border-bottom: 0; }
.ph-list img { border-radius: 8px; }
.ph-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-list small { display: block; font: 400 11px var(--mono); color: var(--muted); }
.ph-list b { font: 500 12px var(--mono); font-variant-numeric: tabular-nums; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; min-width: 0; transition: border-color .15s; }
.idea:hover { border-color: var(--line-2); }
.idea h3 { margin: 8px 0 0; font-size: 16px; letter-spacing: -0.01em; }
.idea h3 small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.idea p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.idea > code { align-self: flex-start; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-art { display: flex; align-items: center; gap: 6px; min-height: 36px; flex-wrap: wrap; }
.ib-sq { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 2px var(--panel); }
.ib-art .ib-sq + .ib-sq { margin-left: -12px; }
.ib-plate { height: 30px; padding: 0 8px; border-radius: 7px; background: var(--plate); display: grid; place-items: center; }
.ib-plate img { height: 14px; width: auto; max-width: 70px; }

/* ---------- Đóng góp & hỏi đáp ---------- */
.help-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.steps { list-style: none; counter-reset: s; margin: 22px 0 22px; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 13px/1 var(--mono); }
.steps b { font-size: 14.5px; }
.steps span { color: var(--muted); font-size: 13.5px; }
.btn .vn-mark { color: inherit; }
.faq { display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; font-size: 14.5px; font-weight: 550; transition: background .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1 var(--mono); color: var(--gold); transition: rotate .2s; flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { background: var(--raise); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14px; }
.faq p a { color: var(--ink-2); }

@media (max-width: 900px) {
  .stats dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats dl > div:nth-child(4) { border-left: 0; }
  .stats dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ls, .ideas, .help-in { grid-template-columns: minmax(0, 1fr); }
  .ls-stage { position: static; }
  .help-in { gap: 36px; }
  .dotshow { grid-template-columns: minmax(0, 1fr); gap: 26px; min-height: 0; padding: 26px 20px 30px; }
  .ds-art { width: min(100%, 320px); justify-self: center; grid-row: 1; }
  .ds-picks { margin-top: 26px; }
  .phone { max-width: 360px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl > div { padding: 20px 16px; }
  .stats dl > div:nth-child(odd) { border-left: 0; }
  .stats dl > div:nth-child(4) { border-left: 1px solid var(--line); }
  .stats dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .idea-grid { grid-template-columns: minmax(0, 1fr); }
  .cw-grid { grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); padding: 8px; }
  .cw-read { flex-wrap: wrap; }
  .ls-row > span:first-child { width: 100%; }
  .ls-dl .seg { width: 100%; margin: 0; } .ls-dl .seg button { flex: 1; } .ls-dl .btn { flex: 1; }
  .ls-row { padding: 8px 0; }
}

/* ---------- Footer: Ninh Bình in dots ---------- */
.site-foot { padding: 0; }
.nb { position: relative; height: 380px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 70%); }
.nb canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.nb.grab canvas { cursor: grabbing; }
.nb-tags span { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; font: 500 11.5px/1 var(--mono); color: var(--ink-2);
  padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px); margin: -30px 0 0 0; translate: -50% 0; }
.nb-tags span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 8px; background: var(--line-2); }
.nb-cap { position: absolute; left: 32px; top: 28px; max-width: 300px; pointer-events: none; }
.nb-cap .eyebrow { margin-bottom: 6px; }
.nb-cap p { margin: 0; font-size: 13px; color: var(--muted); }
.nb-cap b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .nb { height: 320px; } .nb-cap { left: 20px; top: 20px; } }
@media (max-width: 560px) { .nb { height: 280px; } .nb-cap { left: 16px; top: 16px; max-width: 230px; } .nb-cap p { font-size: 12px; } .nb-tags span { font-size: 10.5px; padding: 4px 6px; } }

/* ---------- Footer columns ---------- */
.fcols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding: 48px 32px 36px; }
.fbrand .brand { margin-bottom: 10px; }
.fbrand p { margin: 0 0 16px; max-width: 34em; font-size: 14px; color: var(--muted); }
.fsocial { display: flex; gap: 4px; margin-left: -8px; }
.fcols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fcols h4 { margin: 6px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fcols nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.fcols nav a:hover { color: var(--ink); }
.fnote { padding: 22px 32px 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fnote p { margin: 0 0 10px; max-width: 72em; }
.fnote a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fnote a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.site-foot .foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 18px; }
@media (max-width: 900px) {
  .fcols { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 40px 20px 28px; }
  .fbrand { grid-column: 1 / -1; }
  .fnote { padding: 20px 20px 6px; }
}
@media (max-width: 560px) {
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 36px 16px 24px; }
  .fnote { padding: 18px 16px 4px; }
}

/* ---------- Text pages (legal, license, privacy, contributing) and 404 ---------- */
.text-page .doc .updated { margin: -18px 0 8px; font: 12px var(--mono); color: var(--muted); }
.text-page .doc li { margin: 4px 0; }
.text-page .doc ol { padding-left: 22px; }
.text-page .blk pre { white-space: pre-wrap; }
.text-page td:first-child { white-space: normal; width: auto; line-height: 1.6; }
.lost { min-height: 62vh; display: grid; place-items: center; padding: 72px 24px; text-align: center;
  background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%); }
.lost-in { max-width: 620px; display: grid; justify-items: center; }
.lost h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 12px; }
.lost .lead { margin: 0 auto 24px; }
.lost .downloads { justify-content: center; }
.lost-seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.lost-seals a { border-radius: 50%; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.lost-seals a:hover { transform: translateY(-3px) rotate(-5deg); }
@media (max-width: 560px) { .lost-seals img { width: 64px; height: 64px; } }

/* Four header items (Logos, Docs, Pro, search) on the narrowest phones. */
@media (max-width: 420px) {
  .top-in { gap: 6px; }
  .top-end { gap: 2px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 5px; font-size: 13.5px; }
  .lang a, .top-end .theme { width: 32px; }
  .brand .word { display: none; }
}

/* ---------- Line icons page ---------- */
.li-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.li-hero .lead { max-width: 44em; }
.li-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.li-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--muted); flex: 1 1 280px; max-width: 420px; }
.li-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; outline: none; }
.li-search:focus-within { border-color: var(--gold); }
.li-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.li-count { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.li-prov { margin-top: 26px; scroll-margin-top: 80px; }
.li-prov h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.li-prov h3 a { font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.li-prov h3 a:hover { color: var(--gold); }
.li-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 8px 10px; min-height: 96px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.li:hover { border-color: var(--gold); background: var(--raise); }
.li:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.li svg { width: 32px; height: 32px; flex: none; }
.li span { font-size: 12px; line-height: 1.3; text-align: center; color: var(--ink-2); overflow-wrap: anywhere; }
.li[hidden], .li-prov[hidden], .li-region[hidden] { display: none; }
.li-empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 480px) { .li-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card .stage .lnart { display: grid; place-items: center; width: 64px; height: 64px; color: var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.card .stage .lnart svg { width: 48px; height: 48px; }
.card:hover .stage .lnart { transform: scale(1.08); color: var(--gold); }
.p-line { display: block; width: 22px; height: 22px; margin: auto; background: #22170f; /* drawn on --plate, which stays light in both themes */ -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.li:target { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }

/* ---------- Request ---------- */
.p-empty a { display: inline; padding: 0; color: var(--ink); text-decoration: underline; }
.rq-hero { padding-bottom: 40px; }
.rq-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 14px; text-wrap: balance; max-width: 16em; }
.rq-hero .lead { max-width: 44em; }
.rq-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.rq-form { display: grid; gap: 18px; }
.rq-kinds { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rq-kinds legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.rq-kind { position: relative; cursor: pointer; }
.rq-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-kind span { display: grid; gap: 6px; height: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); transition: border-color .15s, background .15s, box-shadow .15s; }
.rq-kind b { font-size: 14px; font-weight: 600; }
.rq-kind small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rq-kind:hover span { border-color: var(--muted); }
.rq-kind input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--panel)); box-shadow: inset 0 0 0 1px var(--gold); }
.rq-kind input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 24%, transparent); }
.rq-field { display: grid; gap: 7px; }
.rq-field > span { font-size: 14px; font-weight: 600; }
.rq-field i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.rq-field input, .rq-field textarea { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 14.5px; outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.rq-field input::placeholder, .rq-field textarea::placeholder { color: var(--muted); opacity: .8; }
.rq-field input:focus, .rq-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
.rq-have { margin: -8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rq-have[hidden], .rq-err[hidden], .rq-ok[hidden] { display: none; }
.rq-err { margin: 0; color: var(--red); font-size: 13.5px; }
.rq-ok { margin: 0; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; }
.rq-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rq-go .btn { height: 44px; padding: 0 18px; }
.rq-go span { color: var(--muted); font-size: 12.5px; max-width: 30em; }
.rq-board { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px; position: sticky; top: 84px; }
.rq-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rq-board h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.rq-board-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.rq-board-head a:hover { color: var(--ink); }
.rq-board-head a svg { width: 13px; height: 13px; }
.rq-board-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.rq-board-sub svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
.rq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rq-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); text-decoration: none; transition: border-color .15s, transform .12s; }
.rq-item:hover { border-color: var(--muted); transform: translateY(-1px); }
.rq-votes { flex: none; width: 44px; height: 44px; display: grid; place-content: center; text-align: center; border-radius: 9px; border: 1px solid var(--line-2); line-height: 1; }
.rq-votes b { font: 600 15px/1 var(--mono); }
.rq-votes small { font-size: 11px; margin-top: 3px; }
.rq-votes.on { border-color: var(--gold); color: var(--gold); }
.rq-body { display: grid; gap: 3px; min-width: 0; }
.rq-body b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-body small { color: var(--muted); font-size: 12px; }
.rq-skel { height: 64px; border-radius: 10px; background: linear-gradient(90deg, var(--raise), var(--line), var(--raise)); background-size: 200% 100%; animation: rq-shine 1.4s linear infinite; }
@keyframes rq-shine { to { background-position: -200% 0; } }
.rq-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line-2); border-radius: 10px; }
.rq-empty a { color: var(--ink); }
.rq-shipped { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rq-shipped h3 { font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .04em; margin: 0 0 10px; }
.rq-shipped ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rq-shipped li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rq-shipped li a { color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-shipped li a::before { content: "✓ "; color: var(--gold); }
.rq-shipped small { color: var(--muted); font-size: 12px; flex: none; }
.help h2 code { font-size: .8em; }
@media (max-width: 900px) {
  .rq-main { grid-template-columns: minmax(0, 1fr); }
  .rq-board { position: static; }
}
@media (max-width: 640px) { .rq-kinds { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rq-skel { animation: none; } }
/* Phones: the header has no room for a fourth link; the footer and Contribute link to Request. */
@media (max-width: 480px) { .nav-req { display: none; } }
.li-cell { position: relative; }
.li-cell[hidden] { display: none; }
.li { text-decoration: none; height: 100%; }
.li-copy { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; opacity: 0; transition: opacity .15s; }
.li-copy svg { width: 14px; height: 14px; }
.li-cell:hover .li-copy, .li-copy:focus-visible { opacity: 1; }
@media (hover: none) { .li-copy { opacity: 1; } }

/* ---------- Line icon pages ---------- */
.line-canvas .line-art { display: grid; place-items: center; color: #17120e; }
.line-canvas .line-art svg { width: 128px; height: 128px; transition: width .2s, height .2s; }
.line-canvas[data-size="48"] .line-art svg { width: 48px; height: 48px; }
.line-canvas[data-size="24"] .line-art svg { width: 24px; height: 24px; }
.line-canvas[data-bg="dark"] .line-art, .line-canvas[data-bg="brand"] .line-art { color: #fff; }
.viewer-foot .seg [data-size] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .line-canvas .line-art svg { transition: none; } }

/* Customise panel on line icon pages: stroke colour and drop shadow. */
.line-canvas .line-art svg { overflow: visible; }
.tune { display: grid; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.tune-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-height: 28px; }
.tune-label { width: 52px; flex: none; font: 12px/1 var(--mono); color: var(--muted); }
.tune-sw { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tune-sw button, .tune-pick { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; transition: transform .1s, box-shadow .15s; }
.tune-sw button { background: var(--c); }
.tune-sw button:active, .tune-pick:active { transform: scale(.92); }
.tune-sw button[aria-pressed="true"], .tune-pick.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--muted); }
.tune-sw .auto { background: linear-gradient(135deg, #ffffff 0 50%, #17120e 50% 100%); }
.tune-pick { overflow: hidden; background: conic-gradient(#e5484d, #f5a524, #e7d84c, #46a758, #3e9bd6, #6e56cf, #d6409f, #e5484d); }
.tune-pick input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }
.tune-pick[hidden] { display: none; }
.tune-hex { margin-left: auto; font: 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tune-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tune-switch input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.tune-reset { margin-left: auto; height: 28px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--raise); color: var(--muted); font: 500 12.5px/1 inherit; cursor: pointer; transition: color .15s, border-color .15s; }
.tune-reset:hover { color: var(--ink); border-color: var(--muted); }
.tune-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; padding-left: 64px; }
.tune-sliders[hidden] { display: none; }
.tune-sliders label { display: grid; grid-template-columns: 54px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.tune-sliders input[type="range"] { width: 100%; margin: 0; accent-color: var(--gold); }
.tune-sliders output { font: 12px/1 var(--mono); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .tune-sliders { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .tune-hex { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .tune-sw button, .tune-pick { transition: none; } }
