/* Space «Jarvis» layer — every rule is under html.jv, so ?jv=0 (or the switch) returns the old look completely. */
.jv-switch{display:flex;justify-content:flex-end;gap:6px;margin:0 0 8px;opacity:.6;transition:opacity .25s}
.jv-switch:hover{opacity:1}
.jv-switch button{border:0;border-radius:10px;padding:6px 10px;background:#07161ee6;color:#cfe2e6;font:700 11px "JetBrains Mono",monospace;box-shadow:inset 0 0 0 1px #6ff7d855;cursor:pointer}

html.jv .bc-tile,html.jv .bc-facet-head{background:linear-gradient(160deg,#0c2230ee,#081520e8)!important;box-shadow:inset 0 0 0 1px #5ec8ff33,0 18px 40px #0007;border-radius:14px;overflow:visible}
html.jv .bc-tile{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%2306141b' fill-opacity='.85' stroke='%236ff7d8' stroke-width='1.5'/%3E%3Cpath d='M13 13 8 8m0 0v4m0-4h4M19 19l5 5m0 0v-4m0 4h-4' fill='none' stroke='%236ff7d8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 16 16,pointer;transition:background .25s,box-shadow .25s,transform .25s}
html.jv .bc-tile:hover{box-shadow:inset 0 0 0 1.5px #6ff7d8,0 0 34px #6ff7d833,0 18px 40px #0008}
html.jv .bc-tile.bc-tile-action{cursor:pointer}
html.jv .jv-corner{position:absolute;width:12px;height:12px;border:2px solid #5ec8ff;filter:drop-shadow(0 0 5px #5ec8ff);pointer-events:none;opacity:.8}
html.jv .jv-corner.c1{left:-3px;top:-3px;border-right:0;border-bottom:0;border-radius:5px 0 0 0}html.jv .jv-corner.c2{right:-3px;top:-3px;border-left:0;border-bottom:0;border-radius:0 5px 0 0}
html.jv .jv-corner.c3{left:-3px;bottom:-3px;border-right:0;border-top:0;border-radius:0 0 0 5px}html.jv .jv-corner.c4{right:-3px;bottom:-3px;border-left:0;border-top:0;border-radius:0 0 5px 0}
html.jv .jv-ticks{position:absolute;left:22px;right:22px;top:-1px;height:5px;pointer-events:none;background:repeating-linear-gradient(90deg,#6ff7d888 0 1px,transparent 1px 9px);-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);opacity:.55}
html.jv .jv-hint{position:absolute;right:8px;top:8px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#06141bcc;box-shadow:inset 0 0 0 1px #6ff7d866;opacity:0;transform:scale(.7);transition:.25s;pointer-events:none}
html.jv .bc-tile:hover .jv-hint,html.jv .bc-tile.jv-charged .jv-hint{opacity:1;transform:none}html.jv .jv-hint svg{width:16px;height:16px}
html.jv .jv-prog{position:absolute;inset:-3px;width:36px!important;height:36px!important;transform:rotate(-90deg)}html.jv .jv-prog circle{fill:none;stroke:#6ff7d8;stroke-width:2;stroke-dasharray:113;stroke-dashoffset:calc(113 - 113 * var(--pr,0))}
html.jv .bc-tile{--jv-st:0}html.jv .bc-tile.jv-charged{box-shadow:inset 0 0 0 2px #6ff7d8,0 0 70px #6ff7d8aa!important}
html.jv .bc-tile:before{content:'';position:absolute;inset:calc(var(--jv-st)*-20px);border-radius:16px;box-shadow:0 0 0 2px #6ff7d8;opacity:calc(var(--jv-st)*1.6);pointer-events:none}
html.jv .bc-facet-head .bc-facet-title{background:linear-gradient(180deg,#fff,#bfeef0);-webkit-background-clip:text;background-clip:text;color:transparent}
html.jv .bc-tab.is-on{background:#6ff7d81c;color:#6ff7d8;box-shadow:inset 0 0 0 1px #6ff7d877}
html.jv .bc-back{border-radius:12px}
.jv-lines{position:fixed;inset:0;z-index:950;pointer-events:none}.jv-lines i{position:absolute;background:#6ff7d8;box-shadow:0 0 14px #6ff7d8,0 0 3px #fff;border-radius:2px}
@media(prefers-reduced-motion:reduce){html.jv .bc-tile:before{display:none}}
/* Video and knowledge tiles set their children to relative — the decoration must stay on top of the tile, not in its flow */
html.jv #explore-results .bc-tile>.jv-corner,html.jv #explore-results .bc-tile>.jv-ticks,html.jv #explore-results .bc-tile>.jv-hint{position:absolute!important}
/* «↓ Дальше: …» — pulling on past the end of a dive section leads to the next one */
.bc-pull{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;display:grid;gap:6px;min-width:220px;padding:9px 14px;border:1px solid #6ff7d855;border-radius:14px;background:#08121af0;color:#e9f3f6;font:12px "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;text-align:center;box-shadow:0 10px 30px #0008;pointer-events:none}
.bc-pull i{display:block;height:3px;border-radius:2px;background:#ffffff1a;overflow:hidden}
.bc-pull b{display:block;height:100%;width:0;background:linear-gradient(90deg,#6ff7d8,#b9a4ff);transition:width .12s}
.bc-pull.is-ready{border-color:#6ff7d8;color:#6ff7d8}
