/* The free BPM and key finder (/bpm-key-finder/). Uses the tokens of assets/css/style.css; nothing here changes other pages.
   Motion rules: only transform, opacity and a few SVG strokes move; everything stops for prefers-reduced-motion. */

.bk-page {
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ok: #5fdc93;
  --card: linear-gradient(180deg, rgba(228, 210, 198, .06), rgba(228, 210, 198, .022));
  --beat: .5s;
}
.bk-page [hidden] { display: none !important; }

/* ───────────────────────────── hero */
.bk-hero { position: relative; isolation: isolate; padding-top: clamp(8px, 2vw, 22px); }
.bk-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: var(--wrap); }
.bk-hero h1 { margin: 8px 0 14px; font-size: clamp(48px, 8.4vw, 92px); }
.bk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.bk-hero .eyebrow { line-height: 1.5; align-items: flex-start; }
.bk-hero .eyebrow .star { margin-top: 3px; }
.bk-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.bk-facts li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(228, 210, 198, .03); color: var(--ash-dim); font-size: 12px; font-weight: 600; }
.bk-facts li::before { content: "✦"; margin-right: 8px; color: var(--blood-hot); }

/* the decorative scope: bars that dance, a line that sweeps, three chips that swap their numbers */
.bk-scope {
  position: relative; overflow: hidden; aspect-ratio: 1 / .82; min-height: 230px; border: 1px solid var(--line-strong); border-radius: 22px;
  background: radial-gradient(70% 70% at 50% 40%, rgba(200, 16, 28, .22), transparent 70%), linear-gradient(180deg, rgba(23, 11, 13, .95), rgba(10, 5, 6, .95));
  box-shadow: 0 30px 70px -34px rgba(200, 16, 28, .8);
  animation: bk-float 6s ease-in-out infinite;
}
.bk-scope__bars { position: absolute; inset: 22% 6% 22%; display: flex; align-items: center; gap: 3px; }
.bk-scope__bars i {
  flex: 1 1 0; min-width: 0; height: 100%; border-radius: 3px; background: rgba(228, 210, 198, .55); transform-origin: center;
  animation: bk-dance calc(.55s + (var(--i) % 7) * .07s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.09s);
}
.bk-scope__bars i:nth-child(6n + 1) { background: var(--blood-hot); }
.bk-scope__scan {
  position: absolute; top: 0; bottom: 0; width: 22%; left: -22%;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 43, .28), transparent); border-right: 2px solid var(--blood-hot);
  animation: bk-scan 3.6s cubic-bezier(.45, 0, .55, 1) infinite;
}
.bk-chip {
  position: absolute; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(6, 3, 4, .85);
  font: 700 14px/1 var(--font-body); color: var(--ash); opacity: 0; transform: translateY(8px) scale(.94); animation: bk-chip 6s var(--ease) infinite;
}
.bk-chip b { font: 400 26px/1 var(--font-display); margin-right: 4px; vertical-align: -2px; }
.bk-chip--a { left: 7%; top: 8%; animation-delay: .4s; }
.bk-chip--b { right: 7%; top: 14%; animation-delay: 1s; color: #ffb3b3; }
.bk-chip--c { right: 10%; bottom: 9%; animation-delay: 1.6s; background: var(--blood); border-color: transparent; color: #fff; }
@keyframes bk-dance { from { transform: scaleY(.16); } to { transform: scaleY(1); } }
@keyframes bk-scan { 0% { left: -22%; } 100% { left: 100%; } }
@keyframes bk-chip { 0%, 6% { opacity: 0; transform: translateY(8px) scale(.94); } 14%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes bk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ───────────────────────────── the tool */
.bk-wrap { margin: 34px auto 20px; max-width: var(--wrap); }
.bk-alert { margin: 0 0 16px; padding: 14px 16px; border: 1.5px solid rgba(255, 43, 43, .55); border-radius: 12px; background: rgba(200, 16, 28, .12); color: #ffb3b3; }
.bk-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.bk-left { display: grid; gap: 16px; min-width: 0; }
.bk-small { margin: 0; font: 700 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ash-dim); }
.bk-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 4px; background: none; border: 0; color: var(--ash); font: 600 12.5px/1 var(--font-body); text-decoration: underline; text-decoration-color: var(--blood); text-underline-offset: 4px; cursor: pointer; }
.bk-link:hover { color: #fff; text-decoration-color: var(--blood-hot); }

/* the drop zone */
.bk-drop { position: relative; border-radius: 20px; background: var(--card); transition: transform .3s var(--spring), box-shadow .3s, background .3s; }
.bk-drop__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bk-drop__ring rect { width: calc(100% - 3px); height: calc(100% - 3px); fill: none; stroke: rgba(228, 210, 198, .38); stroke-width: 1.5; stroke-dasharray: 2.2 1.4; animation: bk-march 1.6s linear infinite; transition: stroke .3s; }
.bk-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-drop__label { position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 22px 30px; text-align: center; cursor: pointer; border-radius: 20px; }
.bk-drop__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 43, 43, .13); color: var(--blood-hot); animation: bk-bob 2.6s ease-in-out infinite; }
.bk-drop__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-drop__title { font: 400 clamp(30px, 4.4vw, 40px)/1 var(--font-display); color: var(--ash); }
.bk-drop__sub { max-width: 30ch; font-size: 13.5px; line-height: 1.5; color: var(--ash-dim); }
.bk-drop__btn { margin-top: 4px; padding: 13px 26px; border-radius: 10px; background: var(--blood); color: #fff; font: 800 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; transition: background .2s, transform .2s; }
.bk-drop__label:hover .bk-drop__btn { background: var(--blood-hot); transform: translateY(-2px); }
.bk-drop:focus-within { outline: 2px solid var(--blood-hot); outline-offset: 3px; }
.bk-drop.is-over { transform: scale(1.025); background: linear-gradient(180deg, rgba(200, 16, 28, .22), rgba(200, 16, 28, .08)); box-shadow: 0 0 0 4px rgba(255, 43, 43, .2), 0 30px 60px -30px rgba(200, 16, 28, .9); }
.bk-drop.is-over .bk-drop__ring rect { stroke: var(--blood-hot); animation-duration: .5s; }
.bk-drop.is-over .bk-drop__icon { animation: none; transform: scale(1.18); }
@keyframes bk-march { to { stroke-dashoffset: -7.2; } }
@keyframes bk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* the list of tracks */
.bk-queue-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.bk-queue-actions { display: flex; flex-wrap: wrap; gap: 0 14px; }
.bk-queue { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bk-item {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(228, 210, 198, .03); color: var(--ash);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--spring);
  animation: bk-in .5s var(--ease) both;
}
.bk-item:hover { border-color: var(--line-strong); transform: translateX(3px); }
.bk-item.is-selected { border-color: rgba(255, 43, 43, .6); background: rgba(255, 43, 43, .08); }
.bk-item.is-error { border-color: rgba(255, 43, 43, .4); cursor: default; }
.bk-item__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 43, 43, .13); color: var(--blood-hot); }
.bk-item__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bk-item__name { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-item__meta { display: block; margin-top: 3px; font-size: 12px; color: var(--ash-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-item__res { text-align: right; font-size: 14px; font-weight: 800; white-space: nowrap; animation: bk-pop .5s var(--spring) both; }
.bk-item__res small { display: block; font-size: 11px; font-weight: 600; color: var(--ash-dim); }
.bk-item.is-working::after, .bk-item.is-queued::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 43, 43, .13) 50%, transparent 70%); background-size: 220% 100%; animation: bk-shimmer 1.4s linear infinite;
}
.bk-item.is-queued::after { opacity: .35; }
.bk-eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 22px; height: 18px; }
.bk-eq i { flex: 1; height: 100%; border-radius: 1px; background: var(--blood-hot); transform-origin: bottom; animation: bk-dance .5s ease-in-out infinite alternate; }
.bk-eq i:nth-child(2) { animation-delay: -.2s; } .bk-eq i:nth-child(3) { animation-delay: -.38s; } .bk-eq i:nth-child(4) { animation-delay: -.12s; }
@keyframes bk-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes bk-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes bk-pop { from { opacity: 0; transform: scale(.7); } }

/* tap tempo */
.bk-tap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.bk-tap__hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ash-dim); }
.bk-tap__out { display: flex; align-items: baseline; gap: 6px; }
.bk-tap__out output { min-width: 2.2ch; font: 400 46px/1 var(--font-display); color: var(--ash); text-align: right; }
.bk-tap__out span { font: 800 12px/1 var(--font-body); color: var(--blood-hot); }
.bk-tap__pad {
  position: relative; grid-row: 1 / span 2; grid-column: 3; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--blood); color: #fff; cursor: pointer;
  font: 800 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 28px -10px rgba(200, 16, 28, .9); transition: transform .12s, background .2s;
  touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent;
}
.bk-tap__pad:hover { background: var(--blood-hot); }
.bk-tap__pad:active, .bk-tap__pad.is-hit { transform: scale(.9); }
.bk-tap__pad::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blood-hot); opacity: 0; }
.bk-tap__pad.is-hit::after { animation: bk-ripple .6s var(--ease); }
.bk-tap .bk-link { justify-self: start; }
@keyframes bk-ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* ───────────────────────────── the result panel */
.bk-result { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: border-color .4s, box-shadow .4s; }
.bk-result.has-result { border-color: rgba(255, 43, 43, .5); box-shadow: 0 24px 60px -32px rgba(200, 16, 28, .75); }
.bk-empty { text-align: center; padding: 6px 0 2px; }
.bk-empty__title { margin: 0; font: 400 34px/1 var(--font-display); color: var(--ash); }
.bk-empty__sub { margin: 8px 0 22px; font-size: 14px; color: var(--ash-dim); }
.bk-ghost { display: grid; gap: 14px; opacity: .5; }
.bk-ghost__wave { display: flex; align-items: center; gap: 3px; height: 84px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.bk-ghost__wave i { flex: 1; height: 100%; border-radius: 2px; background: rgba(228, 210, 198, .3); animation: bk-breathe 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.07s); }
.bk-ghost__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-ghost__row span { height: 96px; border: 1px solid var(--line); border-radius: 14px; background: rgba(228, 210, 198, .03); }
.bk-ghost__bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bk-ghost__bars i { flex: 1; height: var(--h); border-radius: 3px; background: rgba(228, 210, 198, .22); }
@keyframes bk-breathe { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(.9); } }

.bk-res { display: grid; gap: 18px; animation: bk-in .5s var(--ease) both; }
.bk-res__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.bk-res__name { margin: 0; min-width: 0; max-width: 100%; font: 800 16px/1.3 var(--font-body); overflow-wrap: anywhere; color: var(--ash); }
.bk-res__len { font-size: 12.5px; color: var(--ash-dim); }

/* waveform + player */
.bk-wave { position: relative; height: 112px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 3, 4, .6); overflow: hidden; cursor: pointer; touch-action: pan-y; }
.bk-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bk-player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bk-play {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--blood); color: #fff; cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(200, 16, 28, .9); transition: transform .2s var(--spring), background .2s;
}
.bk-play:hover { background: var(--blood-hot); transform: scale(1.07); }
.bk-play svg { width: 22px; height: 22px; fill: currentColor; }
.bk-play .i-pause { display: none; }
.bk-play[aria-pressed="true"] .i-play { display: none; }
.bk-play[aria-pressed="true"] .i-pause { display: block; }
.bk-time { font: 600 13px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ash-dim); min-width: 8.5ch; }
.bk-switch { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent; color: var(--ash); font: 700 12.5px/1 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s; }
.bk-switch::before { content: ""; width: 26px; height: 14px; border-radius: 99px; background: rgba(228, 210, 198, .22); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.bk-switch { position: relative; }
.bk-switch[aria-pressed="true"] { border-color: rgba(255, 43, 43, .6); background: rgba(255, 43, 43, .1); }
.bk-switch[aria-pressed="true"]::before { background: var(--blood-hot); }
.bk-switch__dot { position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.bk-switch[aria-pressed="true"] .bk-switch__dot { transform: translateX(12px); }

/* the two big numbers */
.bk-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bk-card { position: relative; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(6, 3, 4, .45); }
.bk-card__label { font: 700 11px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ash-dim); }
.bk-bpm { position: relative; display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.bk-bpm__ring { position: absolute; left: -4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--blood-hot); opacity: 0; animation: bk-beat var(--beat) ease-out infinite; }
.bk-bpm__dot { position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blood-hot); }
.bk-bpm__num { margin-left: 26px; font: 400 clamp(64px, 9vw, 92px)/.9 var(--font-display); color: var(--ash); font-variant-numeric: tabular-nums; }
.bk-bpm__unit { font: 800 14px/1 var(--font-body); color: var(--blood-hot); }
.bk-bpm__exact { margin-top: 6px; font-size: 12px; color: var(--ash-dim); min-height: 1.2em; }
.bk-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bk-seg button { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ash); font: 700 12.5px/1 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.bk-seg button:hover { border-color: var(--ash); background: rgba(228, 210, 198, .07); }
.bk-seg button:active { transform: scale(.95); }
.bk-seg button[aria-pressed="true"] { border-color: var(--blood-hot); background: rgba(255, 43, 43, .14); color: #fff; }
@keyframes bk-beat { 0% { opacity: .9; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(1.9); } }
.bk-key__name { margin-top: 10px; font: 400 clamp(40px, 5.6vw, 58px)/1 var(--font-display); color: var(--ash); overflow-wrap: anywhere; }
.bk-key__name span { display: inline-block; animation: bk-flip .6s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.bk-key__alias { margin-top: 4px; font-size: 12.5px; color: var(--ash-dim); min-height: 1.2em; }
.bk-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bk-pill { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 99px; font: 700 13px/1.2 var(--font-body); color: var(--ash); }
.bk-pill--hot { border-color: rgba(255, 43, 43, .5); background: rgba(255, 43, 43, .14); color: #ffb3b3; }
.bk-key__runner { margin-top: 12px; font-size: 12.5px; color: var(--ash-dim); }
.bk-key__runner b { color: var(--ash); }
@keyframes bk-flip { from { opacity: 0; transform: translateY(14px) rotateX(70deg); } }

/* confidence */
.bk-conf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bk-meter__top { display: flex; justify-content: space-between; font: 700 12px/1 var(--font-body); color: var(--ash-dim); }
.bk-meter__top b { color: var(--ash); }
.bk-meter__bar { height: 8px; margin-top: 8px; border-radius: 99px; background: rgba(228, 210, 198, .14); overflow: hidden; }
.bk-meter__bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blood), var(--blood-hot)); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 1s var(--ease); }

/* notes and mixing */
.bk-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.bk-chroma { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 12px; }
.bk-chroma div { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.bk-chroma i { display: block; width: 100%; height: var(--h); min-height: 3px; border-radius: 3px 3px 0 0; background: rgba(228, 210, 198, .3); transform-origin: bottom; transform: scaleY(0); animation: bk-grow .8s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.bk-chroma div.is-tonic i { background: var(--blood-hot); }
.bk-chroma small { font-size: 9.5px; font-weight: 700; color: var(--ash-dim); line-height: 1; }
.bk-chroma div.is-tonic small { color: var(--ash); }
@keyframes bk-grow { to { transform: scaleY(1); } }
.bk-mix__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.bk-mix__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ash-dim); }
.bk-mini-wheel { width: 100%; max-width: 230px; margin: 10px auto 0; }

.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-actions .btn { min-height: 46px; padding: 0 20px; font-size: 13px; }
.bk-actions .btn.is-done { background: var(--ok); color: #06210f; border-color: var(--ok); }
.bk-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ash-dim); }
.bk-fail { padding: 16px; border: 1px solid rgba(255, 43, 43, .45); border-radius: 14px; background: rgba(200, 16, 28, .1); color: #ffb3b3; font-size: 14px; line-height: 1.55; }
.bk-working { display: grid; place-items: center; gap: 12px; padding: 36px 0; text-align: center; }
.bk-working .bk-eq { width: 46px; height: 38px; gap: 4px; }
.bk-working p { margin: 0; font-size: 14px; color: var(--ash-dim); }
.bk-working b { color: var(--ash); }

/* ───────────────────────────── the Camelot wheel (also in the text below) */
.bk-wheel { display: block; width: 100%; height: auto; }
.bk-w-seg path { fill: rgba(228, 210, 198, .05); stroke: rgba(228, 210, 198, .22); stroke-width: 1; transition: fill .25s, stroke .25s; }
.bk-w-seg text { fill: var(--ash-dim); font: 800 11px var(--font-body); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .25s; }
.bk-w-seg .bk-w-sub { font-size: 9px; font-weight: 500; }
.bk-w-seg.is-mix path { fill: rgba(255, 43, 43, .22); stroke: rgba(255, 43, 43, .75); }
.bk-w-seg.is-mix text { fill: #ffd0d0; }
.bk-w-seg.is-on path { fill: var(--blood); stroke: #fff; stroke-width: 1.5; }
.bk-w-seg.is-on text { fill: #fff; }
.bk-w-seg.is-on { animation: bk-seg 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bk-wheel--pick .bk-w-seg { cursor: pointer; }
.bk-wheel--pick .bk-w-seg:hover path { fill: rgba(228, 210, 198, .16); }
.bk-wheel--pick .bk-w-seg.is-mix:hover path, .bk-wheel--pick .bk-w-seg.is-on:hover path { filter: brightness(1.15); }
.bk-wheel--pick .bk-w-seg:focus-visible { outline: none; }
.bk-wheel--pick .bk-w-seg:focus-visible path { stroke: #fff; stroke-width: 2; }
.bk-w-hub { fill: #060304; stroke: rgba(228, 210, 198, .22); }
.bk-w-hubtext { fill: var(--ash); font: 800 34px var(--font-body); text-anchor: middle; dominant-baseline: central; }
.bk-w-hubsub { fill: var(--ash-dim); font: 700 8.5px var(--font-body); letter-spacing: .12em; text-anchor: middle; text-transform: uppercase; }
/* the small wheel of the result: only the key and its three matches carry a label */
.bk-wheel--mini .bk-w-seg:not(.is-on):not(.is-mix) text { display: none; }
.bk-wheel--mini .bk-w-seg text { font-size: 19px; }
.bk-wheel--mini .bk-w-hubtext { font-size: 40px; }
.bk-wheel--mini .bk-w-hubsub { font-size: 11px; }
@keyframes bk-seg { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

/* ───────────────────────────── the text under the tool */
.bk-land { max-width: 980px; margin-top: 40px; }
.bk-land h2 { scroll-margin-top: 92px; }
.bk-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.bk-toc a { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(228, 210, 198, .03); color: var(--ash); font-size: 13px; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.bk-toc a:hover, .bk-toc a:focus-visible { border-color: var(--blood-hot); background: rgba(200, 16, 28, .2); transform: translateY(-2px); }
.bk-callout { padding: 16px 18px; border: 1px solid rgba(255, 43, 43, .45); border-radius: 12px; background: linear-gradient(90deg, rgba(200, 16, 28, .17), rgba(200, 16, 28, .04)); }
.bk-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(228, 210, 198, .02); -webkit-overflow-scrolling: touch; }
.bk-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.bk-table th, .bk-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bk-table tr:last-child > * { border-bottom: 0; }
.bk-table thead th { background: rgba(228, 210, 198, .05); color: var(--ash-dim); font: 700 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.bk-table tbody th { width: 42%; color: var(--ash); font-weight: 700; }
.bk-table td { color: #cdbdb2; }
.bk-table tbody tr { transition: background .2s; }
.bk-table tbody tr:hover { background: rgba(228, 210, 198, .04); }
.bk-camelot { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.bk-camelot__info { min-width: 0; font-size: 15px; line-height: 1.65; }
.bk-camelot__info strong { color: var(--ash); }
.bk-camelot__info .bk-pills { margin-top: 12px; }

/* scroll reveal: only where JavaScript runs (the text is plain without it) */
.js .bk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .bk-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .bk-hero__art { max-width: 460px; }
}
@media (max-width: 640px) {
  .bk-scope { aspect-ratio: auto; height: 176px; min-height: 0; }
  .bk-scope__bars { inset: 24% 5% 24%; }
  .bk-table { min-width: 0; font-size: 14px; }
  .bk-table th, .bk-table td { padding: 10px 12px; }
  .bk-table tbody th { width: 44%; }
  .bk-w-seg text { font-size: 13.5px; }
  .bk-w-seg .bk-w-sub { font-size: 10.5px; }
  .bk-wheel--mini .bk-w-seg text { font-size: 19px; }
  .bk-nums, .bk-conf, .bk-lower { grid-template-columns: minmax(0, 1fr); }
  .bk-camelot { grid-template-columns: minmax(0, 1fr); }
  .bk-result { padding: 16px; }
  .bk-tap { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-tap__out { grid-column: 1; }
  .bk-tap__pad { grid-column: 2; grid-row: 1 / span 3; }
  .bk-switch { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-page *, .bk-page *::before, .bk-page *::after { animation: none !important; transition: none !important; }
  .js .bk-reveal { opacity: 1; transform: none; }
  .bk-chip { opacity: 1; transform: none; }
  .bk-meter__bar i { transform: scaleX(var(--w, 0)); }
  .bk-chroma i { transform: none; }
}
