/* Blockwright interaction layer: the black stage, voxel swarm canvas, intro loader, bottom dock
   and the glass surfaces that sit over the particles. Loaded after site.css, so it overrides it. */

:root {
  --z-swarm: 0; --z-content: 1; --z-sticky: 20; --z-dock: 30; --z-dropdown: 40; --z-modal: 50; --z-toast: 60; --z-loader: 80; --z-skip: 100;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dock-h: 52px;
}
/* computed where the theme's colours live (on <body>), not on :root */
body { --glass: color-mix(in oklch, var(--color-surface) 76%, transparent); --glass-edge: color-mix(in srgb, var(--color-text) 10%, transparent); }
html { background: var(--color-bg); scroll-padding-top: 84px; }
/* the theme lives on <body>; give the page behind it the same ground */
html:has(body[data-theme="nether"]) { background: #060506; color-scheme: dark; }
body { background: transparent; line-height: 1.6; padding-bottom: var(--dock-h); }

/* ---------- stage ---------- */
#bw-swarm { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-swarm); pointer-events: none; display: block; }
.site { position: relative; z-index: var(--z-content); }
/* No WebGL: a still, warm glow instead of the particles */
.no-webgl body { background:
  radial-gradient(60vw 50vh at 78% 30%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%),
  radial-gradient(40vw 40vh at 20% 80%, color-mix(in srgb, var(--color-accent-2) 12%, transparent), transparent 70%) fixed; }

/* ---------- nav ---------- */
.site-nav { position: sticky; top: 0; z-index: var(--z-sticky); max-width: none; padding: 14px max(28px, calc((100vw - 1200px) / 2 + 28px));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg) 92%, transparent), color-mix(in srgb, var(--color-bg) 0%, transparent)); }
.site-nav { transition: background-color .3s, box-shadow .3s; }
.scrolled .site-nav { background: color-mix(in srgb, var(--color-bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--glass-edge); }
.site-nav .nav-brand { letter-spacing: .02em; }
.nav-links a { position: relative; color: color-mix(in srgb, var(--color-text) 78%, transparent); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 640px) { .nav-links a::after { display: none; } .nav-links { background: color-mix(in srgb, var(--color-bg) 94%, transparent); border-radius: 18px; } }

/* ---------- buttons ---------- */
.btn { transition: background-color .2s, border-color .2s, color .2s, box-shadow .3s var(--ease-out), transform .25s var(--ease-out); }
.btn-primary { box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--color-accent) 80%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 30%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--color-accent) 95%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent); }
.btn-secondary { background: color-mix(in srgb, var(--color-bg) 40%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- surfaces over the particles ---------- */
.card { background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); }
.dialog { background: var(--color-surface); border: 1px solid var(--glass-edge); }
.input { background: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.notice { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in oklch, var(--color-accent) 14%, color-mix(in srgb, var(--color-bg) 70%, transparent)); }
.site-footer { position: relative; }
@supports not (backdrop-filter: blur(1px)) { .card { background: var(--color-surface); } }
@media (max-width: 760px) { .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in oklch, var(--color-surface) 92%, transparent); } }

/* light-on-black needs a touch more contrast for secondary text */
body[data-theme="nether"] .text-muted { color: color-mix(in srgb, var(--color-text) 68%, transparent); }

/* ---------- headings ---------- */
h1, h2, h3 { text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--color-accent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); }

/* ---------- home: hero ---------- */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; min-height: calc(100svh - 76px - var(--dock-h)); padding: 24px 0 72px; position: relative; }
.hero-copy { max-width: min(620px, 56%); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-2); }
.kicker-dot { width: 8px; height: 8px; background: var(--color-accent-2); box-shadow: 0 0 14px var(--color-accent-2); animation: kicker-blink 2.4s steps(2, end) infinite; }
@keyframes kicker-blink { 50% { opacity: .35; } }
.hero-title { font-size: clamp(48px, 7.2vw, 96px); line-height: .98; letter-spacing: -.01em; margin: 0 0 24px; text-wrap: balance; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.hero-lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.65; max-width: 52ch; margin: 0; color: color-mix(in srgb, var(--color-text) 84%, transparent); text-wrap: pretty; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 36px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.hero-platforms span + span::before { content: "//"; margin-right: 18px; color: var(--color-accent); opacity: .8; }
.scroll-cue { position: absolute; left: 0; bottom: 24px; width: 26px; height: 42px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--color-text) 40%, transparent); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--color-accent); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 900px) {
  .hero-copy { max-width: none; }
  .hero { min-height: calc(100svh - 70px - var(--dock-h)); justify-content: flex-end; padding-bottom: 88px; }
  .scroll-cue { display: none; }
}

/* ---------- home: sections ---------- */
.home-work, .home-process { padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2, .process-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; margin: 0; }
.section-note { max-width: 36ch; margin: 0; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.work-card { transform-style: preserve-3d; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; will-change: transform; }
.work-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 60%); }
.work-card:hover::before { opacity: 1; }
.work-card:hover { border-color: color-mix(in srgb, var(--color-accent) 45%, transparent); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.work-card .washed { filter: none; }
.work-card img { transition: transform .8s var(--ease-out); }
.work-card:hover img { transform: scale(1.05); }
.process-title { max-width: 16ch; margin-bottom: 48px; }
.steps { counter-reset: none; gap: 18px; }
.steps > li { padding: 26px 24px 28px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.step-num { width: auto; height: auto; background: none; display: block; font-family: var(--font-heading); font-size: 56px; line-height: 1; color: var(--color-accent); text-shadow: 0 0 30px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.steps > li:nth-child(2n) .step-num { color: var(--color-accent-2); text-shadow: 0 0 30px color-mix(in srgb, var(--color-accent-2) 50%, transparent); }
.cta-band { margin: clamp(48px, 8vw, 120px) 0 0; min-height: 70svh; padding: 64px 24px; border-radius: 0; background: transparent; color: var(--color-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; }
.cta-band h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1; max-width: 14ch; margin: 0 0 20px; text-shadow: 0 6px 40px rgba(0,0,0,.85); }
.cta-band p { max-width: 46ch; margin: 0 0 32px; font-size: 18px; color: color-mix(in srgb, var(--color-text) 84%, transparent); text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.cta-band-btn, .cta-band-btn:hover { background: var(--color-accent); color: var(--color-bg); }
@media (max-width: 640px) { .cta-band { padding: 48px 8px; } }

/* ---------- other public pages ---------- */
.page-head { padding: 48px 0 36px; max-width: 680px; }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1; margin: 0 0 16px; }
.page-head p { font-size: 18px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.pay-note { margin-top: 28px; padding: 24px 28px; border-radius: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pay-note h2 { color: var(--color-accent) !important; }
.pay-note span { color: color-mix(in srgb, var(--color-text) 86%, transparent) !important; }
.work-head h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: .98; }
.work-hero, .work-gallery img { border: 1px solid var(--glass-edge); }
.work-hero.washed, .washed { filter: none; }
.brief-intro h1 { font-size: clamp(38px, 4.6vw, 60px); }
.fs { scroll-margin-top: 96px; }

/* ---------- bottom dock: section nav + scroll progress ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dock); height: var(--dock-h); display: flex; align-items: center; gap: 20px;
  padding: 0 max(20px, calc((100vw - 1200px) / 2 + 28px)); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-bg) 96%, transparent) 40%, transparent); }
.dock-brand { color: color-mix(in srgb, var(--color-text) 62%, transparent); white-space: nowrap; }
.dock-brand::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--color-accent); vertical-align: 1px; }
.dock-links { flex: 1; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dock-links::-webkit-scrollbar { display: none; }
.dock-links a { position: relative; padding: 14px 12px; color: color-mix(in srgb, var(--color-text) 58%, transparent); text-decoration: none; white-space: nowrap; transition: color .25s; }
.dock-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .4s var(--ease-out); }
.dock-links a:hover { color: var(--color-text); }
.dock-links a[aria-current] { color: var(--color-accent); }
.dock-links a[aria-current]::after { transform: scaleX(1); }
.dock-count { font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--color-text) 50%, transparent); min-width: 54px; text-align: right; }
.dock-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.dock-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2)); transform-origin: left; transform: scaleX(0); }
.dock[data-empty] .dock-links { visibility: hidden; }
.toast-region { bottom: calc(var(--dock-h) + 16px); }
@media (max-width: 640px) { .dock-brand { display: none; } .dock { gap: 8px; } .dock-links { justify-content: flex-start; } .dock-count { min-width: 44px; } }

/* ---------- intro loader ---------- */
.loader { display: none; }
.intro .loader { display: block; position: fixed; inset: 0; z-index: var(--z-loader); background: #000; color: var(--color-text);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; animation: ld-auto .5s 4.2s forwards; }
.ld-c { position: absolute; max-width: 30ch; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.ld-tl { top: 40px; left: 6vw; color: var(--color-accent-2); }
.ld-tc { top: 40px; left: 50%; transform: translateX(-50%); color: var(--color-text); letter-spacing: .3em; }
.ld-tr { top: 40px; right: 6vw; text-align: right; }
.ld-bl { bottom: 64px; left: 6vw; }
.ld-bc { bottom: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ld-br { bottom: 64px; right: 6vw; text-align: right; color: var(--color-accent); }
.ld-mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(40px, 14vw, 180px); }
.ld-n { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 13px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }
/* the centre mark: three stacked pixels building a block */
.ld-block { position: relative; width: 44px; height: 44px; }
.ld-block i { position: absolute; width: 20px; height: 20px; background: var(--color-accent); box-shadow: 0 0 22px var(--color-accent); animation: ld-build 1.2s var(--ease-out) infinite alternate; }
.ld-block i:nth-child(1) { left: 0; bottom: 0; }
.ld-block i:nth-child(2) { right: 0; bottom: 0; background: var(--color-accent-2); box-shadow: 0 0 22px var(--color-accent-2); animation-delay: .15s; }
.ld-block i:nth-child(3) { left: 12px; top: 0; background: var(--color-text); box-shadow: 0 0 22px var(--color-text); animation-delay: .3s; }
@keyframes ld-build { from { transform: translateY(-10px) scale(.6); opacity: .2; } to { transform: none; opacity: 1; } }
.ld-skip { position: absolute; right: 6vw; bottom: 22px; padding: 8px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent); background: transparent; color: var(--color-text);
  font: inherit; font-size: 11px; cursor: pointer; transition: background-color .2s, color .2s; }
.ld-skip:hover { background: var(--color-text); color: #000; }
.ld-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--color-text) 10%, transparent); }
.ld-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2)); transform-origin: left; transform: scaleX(0); }
.loader.ld-out { animation: ld-out .65s var(--ease-out) forwards; }
@keyframes ld-out { to { opacity: 0; clip-path: inset(0 0 100% 0); } }
@keyframes ld-auto { to { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) {
  .ld-tl, .ld-tr, .ld-bl, .ld-br { left: 20px; right: 20px; text-align: left; max-width: none; }
  .ld-tl { top: 84px; } .ld-tc { top: 32px; } .ld-tr { top: 120px; } .ld-bl { bottom: 120px; } .ld-br { bottom: 84px; } .ld-skip { right: 20px; }
}

/* ---------- scrollbars ----------
   Chrome, Edge and Safari: a square, pixel-style thumb in lava fading to emerald, on a black track.
   Chrome ignores these ::-webkit rules on any element that sets the standard scrollbar-color/width,
   so those standard properties are kept to Firefox below. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #060506; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--color-text) 6%, transparent); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--color-accent), color-mix(in oklch, var(--color-accent) 50%, var(--color-accent-2)) 60%, var(--color-accent-2)); border: 3px solid #060506; border-radius: 0; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff9a5c, var(--color-accent-2)); border-width: 2px; }
::-webkit-scrollbar-thumb:active { background: var(--color-accent); }
::-webkit-scrollbar-corner { background: #060506; }
/* scroll areas inside the page (chat, notifications, dialogs, tables): slimmer, quiet until hovered */
.chat-log, .notif-list, .dialog, .card, .chat-log:hover { scrollbar-width: auto; scrollbar-color: auto; }
.chat-log::-webkit-scrollbar, .notif-list::-webkit-scrollbar, .dialog::-webkit-scrollbar, .card::-webkit-scrollbar { width: 8px; height: 8px; }
.chat-log::-webkit-scrollbar-track, .notif-list::-webkit-scrollbar-track, .dialog::-webkit-scrollbar-track, .card::-webkit-scrollbar-track { background: transparent; box-shadow: none; }
.chat-log::-webkit-scrollbar-thumb, .notif-list::-webkit-scrollbar-thumb, .dialog::-webkit-scrollbar-thumb, .card::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--color-text) 22%, transparent); border: 2px solid transparent; background-clip: padding-box; min-height: 32px; }
.chat-log:hover::-webkit-scrollbar-thumb, .notif-list:hover::-webkit-scrollbar-thumb, .dialog:hover::-webkit-scrollbar-thumb, .card:hover::-webkit-scrollbar-thumb { background: var(--color-accent); background-clip: padding-box; }
/* Firefox only understands the standard properties */
@supports (-moz-appearance: none) {
  html { scrollbar-color: var(--color-accent) #060506; }
  .chat-log, .notif-list, .dialog, .card { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-text) 22%, transparent) transparent; }
  .chat-log:hover, .notif-list:hover, .dialog:hover, .card:hover { scrollbar-color: var(--color-accent) transparent; }
}

/* ---------- reduced motion: same look, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  .kicker-dot, .scroll-cue span, .ld-block i { animation: none; }
  .work-card, .work-card img, .btn, .nav-links a::after, .dock-links a::after { transition: none; }
  .work-card:hover img { transform: none; }
}

/* ---------- login / sign-up: the particle portal ----------
   The frame is see-through so the swarm can build the portal inside it (fx.js anchors the shape to it). */
.auth-scene { background: radial-gradient(70% 45% at 50% 96%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 70%); border: 1px solid var(--glass-edge); }
.auth-scene::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 7%; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-accent) 60%, transparent), transparent); filter: blur(1px); }
.no-webgl .auth-scene { background: radial-gradient(40% 55% at 50% 70%, color-mix(in srgb, var(--color-accent) 45%, transparent), transparent 70%), var(--color-surface); }

/* ---------- intro loader, mod-loading edition (overrides the first version above) ---------- */
.ld-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(440px, 86vw); }
.ld-craft { display: flex; align-items: center; gap: 18px; }
.ld-grid { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
/* inventory-style slots: dark recess, lit lower-right edge */
.ld-grid i, .ld-result { display: block; width: 40px; height: 40px; position: relative; background: #0e0c0c;
  box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 color-mix(in srgb, var(--color-text) 14%, transparent); }
.ld-grid i::after { content: ""; position: absolute; inset: 9px; transform: scale(0); transition: transform .28s var(--ease-out); }
.ld-grid i[data-kind="gem"]::after { background: #55dbea; box-shadow: 0 0 14px #55dbea, inset -4px -4px 0 #2f9fb5, inset 4px 4px 0 #d1f7ff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: none; }
.ld-grid i[data-kind="stick"]::after { inset: 6px 16px; background: #c08048; box-shadow: inset -3px 0 0 #8a5a33; transform: rotate(45deg); }
.ld-arrow { width: 30px; height: 22px; color: color-mix(in srgb, var(--color-text) 40%, transparent); transition: color .3s; }
.ld-result { width: 64px; height: 64px; display: grid; place-items: center; }
.ld-result svg { width: 44px; height: 44px; opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .3s, transform .5s var(--ease-out), filter .5s; }
.ld-crafted .ld-arrow { color: var(--color-accent); }
.ld-crafted .ld-result { box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 color-mix(in srgb, var(--color-text) 14%, transparent), 0 0 0 2px var(--color-accent), 0 0 30px color-mix(in srgb, var(--color-accent) 50%, transparent); }
.ld-crafted .ld-result svg { opacity: 1; transform: none; filter: drop-shadow(0 0 8px #55dbea); }
.ld-status { width: 100%; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .12em; }
.ld-step { color: var(--color-text); }
.ld-pct { font-variant-numeric: tabular-nums; color: var(--color-accent); }
.ld-seg { width: 100%; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 14px; }
.ld-seg i { background: color-mix(in srgb, var(--color-text) 10%, transparent); transition: background-color .15s; }
.ld-seg i.on { background: var(--color-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.ld-seg i.on:nth-child(n+11) { background: color-mix(in oklch, var(--color-accent) 55%, var(--color-accent-2)); }
.ld-seg i.on:nth-child(n+17) { background: var(--color-accent-2); box-shadow: 0 0 8px color-mix(in srgb, var(--color-accent-2) 60%, transparent); }
/* a real build log, so a monospace face is the honest choice here */
.ld-log { position: absolute; left: 6vw; bottom: 56px; margin: 0; padding: 0; list-style: none; width: min(460px, 60vw);
  font: 500 11px/1.75 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.ld-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ld-line .25s var(--ease-out) both; }
.ld-log li:last-child { color: var(--color-text); }
.ld-log li:first-child:nth-last-child(n+6) { opacity: .5; }
@keyframes ld-line { from { opacity: 0; transform: translateY(6px); } }
.ld-br { bottom: 64px; }
@media (max-width: 640px) {
  .ld-grid { grid-template-columns: repeat(3, 32px); }
  .ld-grid i { width: 32px; height: 32px; }
  .ld-grid i::after { inset: 7px; }
  .ld-result { width: 52px; height: 52px; }
  .ld-log { left: 20px; right: 20px; width: auto; bottom: 120px; font-size: 10px; }
  .ld-br { display: none; }
  .ld-stage { top: 44%; }
}
@media (prefers-reduced-motion: reduce) { .ld-grid i::after, .ld-result svg, .ld-log li { transition: none; animation: none; } }
