/* jarlings.xyz v4: the lab is alive. Toy strips under every page banner, a home control room, a dock with sound,
   lab lights and secrets. Decor only: nothing here covers a real control. Loops animate transform/opacity and stop
   off-screen, in hidden tabs and while the miner hashes. Reduced motion keeps the toys and drops flashes and loops. */

/* ---------------------------------------------------------------- shared chunky key */
.v4-key, .v4-tk, .v4-d, .v4-crane-b { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.v4-key { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; flex: none; white-space: nowrap;
  font: 20px / 1 var(--term); text-transform: uppercase; letter-spacing: .04em; color: var(--cream); cursor: pointer;
  background: linear-gradient(180deg, #24302d, #161e1c); border: 2px solid #000; border-radius: 0;
  box-shadow: 0 4px 0 #000, inset 0 2px 0 rgba(238, 230, 208, .14), inset 0 -2px 0 rgba(0, 0, 0, .35); transition: transform .06s, box-shadow .06s, background-color .2s, color .2s; }
.v4-key:hover { color: #fff; background: linear-gradient(180deg, #2c3a36, #1a2421); }
.v4-key:active, .v4-key.is-down { transform: translateY(4px); box-shadow: 0 0 0 #000, inset 0 2px 0 rgba(0, 0, 0, .3); }
.v4-key[aria-pressed='true'] { color: var(--green); background: linear-gradient(180deg, #1b3a2a, #10241a); }
.v4-key[aria-pressed='true'] .ic { filter: drop-shadow(0 0 4px rgba(110, 240, 150, .8)); }
.v4-key.y { color: #1b1405; background: linear-gradient(180deg, #f4d468, #d6ad2d); }
.v4-key.o { color: #220b02; background: linear-gradient(180deg, #ff9b4a, #d8641f); }
.v4-key.r { color: #fff; background: linear-gradient(180deg, #f0644d, #b8331f); }
.v4-key:focus-visible, .v4-tk:focus-visible, .v4-d:focus-visible, .v4-tg:focus-visible, .v4-room button:focus-visible, .v4-fader input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------------------------------------------------------------- icons (drawn, currentColor) */
.ic { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; }
.ic-spk { clip-path: polygon(0 32%, 30% 32%, 66% 0, 66% 100%, 30% 68%, 0 68%); }
.v4-d.snd[aria-pressed='true'] .ic-spk { clip-path: polygon(0 32%, 26% 32%, 56% 0, 56% 100%, 26% 68%, 0 68%, 0 32%, 70% 30%, 78% 30%, 78% 70%, 70% 70%, 70% 30%, 88% 14%, 96% 14%, 96% 86%, 88% 86%, 88% 14%); }
.ic-bulb { border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%; clip-path: polygon(0 0, 100% 0, 100% 62%, 70% 76%, 70% 100%, 30% 100%, 30% 76%, 0 62%); }
.ic-dots { background: radial-gradient(circle, currentColor 0 2px, transparent 2.6px) 0 50% / 5.33px 6px repeat-x; }
.ic-lever { clip-path: polygon(40% 30%, 56% 30%, 56% 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 40% 70%); background: linear-gradient(currentColor, currentColor), radial-gradient(circle at 48% 18%, currentColor 0 18%, transparent 20%); }
.v4-key .ic-lever { clip-path: none; background: radial-gradient(circle at 50% 16%, currentColor 0 16%, transparent 18%), linear-gradient(currentColor, currentColor) 50% 30% / 3px 46% no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 100% 30% no-repeat; transform: rotate(var(--r, -18deg)); transition: transform .25s; }
.v4-running .ic-lever, .v4-key[aria-pressed='true'] .ic-lever { --r: 18deg; }
.ic-valve, .ic-dial { background: none; border: 3px solid currentColor; border-radius: 50%; transform: rotate(var(--r, 0deg)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ic-valve { background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat; }
.ic-dial { background: linear-gradient(currentColor, currentColor) 50% 0 / 2px 55% no-repeat; }
.v4-key[data-k] { --r: inherit; }
.ic-sw { background: linear-gradient(currentColor, currentColor) 50% 18% / 6px 6px no-repeat; border: 2px solid currentColor; }
.v4-key[aria-pressed='false'] .ic-sw { background-position: 50% 82%; }
.ic-scan { background: none; border: 2px solid currentColor; box-shadow: inset 0 7px 0 -5px transparent; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 2px; background-position: 0 50%; background-repeat: no-repeat; }
.ic-tap { border-radius: 50%; background: radial-gradient(circle, currentColor 0 30%, transparent 32% 52%, currentColor 54% 66%, transparent 68%); }
.ic-radio { clip-path: polygon(10% 40%, 70% 8%, 74% 16%, 30% 40%, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.ic-bellows { clip-path: polygon(0 20%, 70% 34%, 100% 46%, 100% 54%, 70% 66%, 0 80%); }
.ic-hammer { clip-path: polygon(0 0, 100% 0, 100% 36%, 60% 36%, 60% 100%, 40% 100%, 40% 36%, 0 36%); }
.ic-next { clip-path: polygon(10% 0, 80% 50%, 10% 100%); }
.ic-claw { clip-path: polygon(44% 0, 56% 0, 56% 40%, 100% 56%, 84% 100%, 76% 100%, 86% 66%, 50% 54%, 14% 66%, 24% 100%, 16% 100%, 0 56%, 44% 40%); }
.ic-btn { border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }

/* ---------------------------------------------------------------- toy strip under each banner */
.v2-bn.v4-live { margin-bottom: 0; box-shadow: inset 0 0 0 1px rgba(110, 240, 150, .2); }
.v4-hot { pointer-events: auto; cursor: pointer; }
.v4-strip { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 26px; padding: 12px 12px 14px;
  background: linear-gradient(180deg, #0e1513, #0a0f0e); border: 3px solid #000; border-top: 0; box-shadow: 0 6px 0 #000, inset 0 1px 0 rgba(110, 240, 150, .14); }
.v2-bn.bn-mine.v4-live { margin-bottom: 0; }
.v4-strip[data-r='mine'] { margin-bottom: 22px; }
.v4-sk { font: 18px / 1 var(--term); color: rgba(238, 230, 208, .55); text-transform: uppercase; letter-spacing: .1em; padding-right: 4px; white-space: nowrap; }
.v4-read { margin-left: auto; min-height: 22px; display: inline-flex; align-items: center; gap: 8px; font: 19px / 1.1 var(--term); color: var(--green); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 8px rgba(63, 220, 127, .5); white-space: nowrap; }
.v4-bar { display: inline-flex; gap: 3px; }
.v4-bar i { width: 10px; height: 14px; background: #2a1a10; border: 1px solid #000; }
.v4-bar i.on { background: linear-gradient(#ffd27a, #ff7a2a); box-shadow: 0 0 6px rgba(255, 140, 50, .7); }
.v4-keys { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.v4-tk { width: 36px; height: 38px; padding: 0; font: 22px / 1 var(--term); color: var(--green); cursor: pointer; background: linear-gradient(180deg, #1c2624, #121918); border: 2px solid #000; box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(238, 230, 208, .12); transition: transform .05s, box-shadow .05s; }
.v4-tk.w { width: 46px; color: var(--yellow); }
.v4-tk:active, .v4-tk.is-down { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.v4-typed { color: #b6ffd0; }
.v4-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .v4-strip { gap: 8px; padding: 10px 10px 12px; margin-bottom: 20px; }
  .v4-sk { display: none; }
  .v4-read { margin-left: 0; flex-basis: 100%; white-space: normal; font-size: 17px; }
  .v4-key { height: 38px; padding: 0 10px; font-size: 18px; gap: 6px; }
  .v4-tk { width: 32px; height: 36px; font-size: 20px; } .v4-tk.w { width: 40px; }
}

/* ---------------------------------------------------------------- banner reactions */
.v4-ring { position: absolute; z-index: 7; left: 50%; top: 50%; width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--c, rgba(110, 240, 150, .8)); pointer-events: none; transform: translate(-50%, -50%); text-decoration: none; }
.v4-spk { position: absolute; z-index: 7; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #ffd27a; box-shadow: 0 0 6px #ff8a2a; pointer-events: none; text-decoration: none; }
.v4-spk.hot { background: #fff6dc; box-shadow: 0 0 8px #fff, 0 0 14px #ffb347; }
.v4-sweep { position: absolute; z-index: 6; top: 0; bottom: 0; left: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(110, 240, 150, .35), rgba(200, 255, 220, .7) 50%, rgba(110, 240, 150, .35), transparent); pointer-events: none; text-decoration: none; }
.v4-flow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(232, 196, 72, .8) 50%, transparent) 0 0 / 40% 100% no-repeat; animation: v4-flow 1s linear forwards; pointer-events: none; text-decoration: none; }
.v4-flow.rev { animation-direction: reverse; }
@keyframes v4-flow { from { transform: translateX(-40%); opacity: 1; } to { transform: translateX(150%); opacity: .2; } }
.v4-heat { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 100%; opacity: 0; background: radial-gradient(55% 80% at 30% 100%, rgba(255, 150, 60, .55), transparent 70%), radial-gradient(90% 60% at 50% 100%, rgba(255, 90, 30, .3), transparent 70%); transition: opacity .5s; pointer-events: none; }
.v2-bn[data-heat='4'] .v4-heat { background: radial-gradient(55% 80% at 30% 100%, rgba(255, 245, 210, .7), transparent 70%), radial-gradient(90% 60% at 50% 100%, rgba(255, 160, 60, .45), transparent 70%); }
.bn-hang, .bn-anvil, .bn-ch, .bn-stop, .bn-frame, .bn-fighter, .bn-vs, .bn-jar, .bn-pod, .bn-sheet { -webkit-tap-highlight-color: transparent; }
.v4-spot { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 120px; margin-left: -60px; opacity: 0; background: radial-gradient(50% 75% at 50% 35%, rgba(255, 235, 170, .4), transparent); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; pointer-events: none; }
.v4-spot.on { opacity: 1; }
.bn-frame.v4-lit { box-shadow: 0 0 34px rgba(255, 210, 63, .8); }
.v2-bn.v4-lowlit .bn-frame { filter: brightness(.45); }
.v2-bn.v4-lowlit .bn-spot { opacity: 0; }
.v2-bn.v4-lowlit .bn-frame.v4-lit { filter: none; }
.bn-cone { transition: opacity .3s; }
.v2-bn.v4-cones-off .bn-cone { opacity: 0 !important; animation-name: none; }
.v2-bn.v4-cones-off .bn-fighter { filter: brightness(.6); }
.bn-pod.v4-on img { filter: drop-shadow(0 0 10px rgba(110, 240, 150, .95)) brightness(1.2); }
.bn-pod.v4-on::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(110, 240, 150, .35), transparent 65%); pointer-events: none; }
.v2-bn[data-temp='cool'] .bn-pod img { filter: hue-rotate(60deg) saturate(.8); }
.v2-bn[data-temp='hot'] .bn-pod img { filter: hue-rotate(-70deg) saturate(1.3); }
.v2-bn[data-temp='hot'] .bn-pod.v4-on img { filter: hue-rotate(-70deg) saturate(1.3) drop-shadow(0 0 10px rgba(255, 140, 60, .95)); }
#start[data-v4-hint] { outline: 4px solid var(--yellow) !important; outline-offset: 5px; }

/* ---------------------------------------------------------------- dock (replaces the v2 speaker) */
.v2-snd { display: none !important; }
.v4-dock { position: fixed; z-index: 26; right: 14px; bottom: 14px; display: flex; gap: 6px; align-items: flex-end; }
html[data-route='home'] .v4-dock { bottom: 52px; }
.v4-d { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; cursor: pointer; color: rgba(238, 230, 208, .8);
  background: rgba(5, 8, 7, .9); border: 2px solid rgba(238, 230, 208, .25); box-shadow: 0 3px 0 #000; transition: transform .06s, box-shadow .06s, color .2s, border-color .2s; }
.v4-d:hover { border-color: var(--green); color: #fff; }
.v4-d:active, .v4-d.is-down { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.v4-d[aria-pressed='true'] { color: var(--green); border-color: rgba(110, 240, 150, .55); }
.v4-d.lit[aria-pressed='true'] { color: var(--yellow); border-color: rgba(232, 196, 72, .6); }
.v4-d.lit[aria-pressed='true'] .ic { filter: drop-shadow(0 0 5px rgba(232, 196, 72, .9)); }
.v4-d.more b { position: absolute; right: -6px; top: -8px; font: 14px / 1 var(--term); color: #04140a; background: var(--green); padding: 2px 3px 1px; border: 1px solid #000; }
.v4-panel { position: absolute; right: 0; bottom: 52px; width: 270px; max-width: calc(100vw - 28px); max-height: calc(100vh - 130px); overflow: auto; padding: 12px 14px; color: var(--cream);
  background: #0b100f; border: 3px solid #000; box-shadow: 0 6px 0 #000, inset 0 0 0 1px rgba(110, 240, 150, .22); }
.v4-panel[hidden] { display: none; }
.v4-ph { margin: 0 0 8px; font: 18px / 1 var(--term); text-transform: uppercase; letter-spacing: .1em; color: rgba(238, 230, 208, .55); }
.v4-ph + .v4-sec { margin-top: 0; }
.v4-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; margin: 0 0 6px; padding: 0; font: 20px / 1 var(--term); text-transform: uppercase; color: var(--cream); background: none; border: 0; cursor: pointer; text-align: left; }
.v4-row input[type='range'] { width: 130px; accent-color: var(--green); }
.v4-tg i { position: relative; width: 40px; height: 22px; flex: none; background: #1c2523; border: 2px solid #000; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.v4-tg i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #7d8784; transition: transform .15s; }
.v4-tg[aria-checked='true'] i { background: #173a26; }
.v4-tg[aria-checked='true'] i::after { transform: translateX(18px); background: var(--green); }
.v4-sec { list-style: none; margin: 4px 0 8px; padding: 0; }
.v4-sec li { display: grid; gap: 2px; padding: 6px 0; border-top: 1px dashed rgba(238, 230, 208, .14); }
.v4-sec b { font: 19px / 1 var(--term); text-transform: uppercase; color: rgba(238, 230, 208, .45); letter-spacing: .05em; }
.v4-sec li.got b { color: var(--green); }
.v4-sec span { font-size: 13px; line-height: 1.3; color: rgba(238, 230, 208, .6); }
.v4-fine { margin: 6px 0 0; font-size: 12px; color: rgba(238, 230, 208, .5); }

/* ---------------------------------------------------------------- toast, night shift, power veil */
.v4-toast { position: fixed; z-index: 27; right: 14px; top: 72px; max-width: calc(100vw - 28px); padding: 10px 14px 9px; font: 20px / 1.1 var(--term); text-transform: uppercase; color: var(--cream); background: #0b100f; border: 3px solid #000; box-shadow: 0 5px 0 #000, inset 0 0 0 1px rgba(232, 196, 72, .5); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; }
@media (max-width: 700px) { .v4-toast { top: 84px; right: 10px; font-size: 18px; } }
.v4-toast.in { opacity: 1; transform: none; }
.v4-toast b { color: var(--yellow); margin-right: 6px; } .v4-toast i { font-style: normal; color: var(--green); margin-left: 6px; }
.v4-night { position: fixed; inset: 0; z-index: 24; overflow: hidden; pointer-events: none; }
.v4-night i { position: absolute; left: -100px; top: -100px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 200, .05) 0 1.4%, rgba(2, 4, 3, .62) 3.2%); will-change: transform; }
.v4-veil { position: fixed; inset: 0; z-index: 23; background: rgba(1, 3, 2, .62); pointer-events: none; }
.v4-torch { position: absolute; z-index: 4; left: -220px; top: -220px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 255, 220, .14), rgba(110, 240, 150, .05) 40%, transparent 68%); mix-blend-mode: screen; opacity: 0; transition: opacity .4s; pointer-events: none; }
.v4-torch.on { opacity: 1; }
.lost .v4-strip { justify-content: center; background: none; border: 0; box-shadow: none; margin: 4px 0 16px; padding: 0; }
.lost.v4-alarm { box-shadow: inset 0 0 0 4px rgba(226, 85, 63, .8), 0 0 60px rgba(226, 85, 63, .35); }

/* ---------------------------------------------------------------- home: the control room */
.v4-room { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #050807, var(--night) 30%); border-top: 3px solid #000; }
.v4-room::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard-tape); border-bottom: 2px solid #000; }
.v4-room-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.v4-room-head { max-width: 760px; margin-bottom: 28px; }
.v4-room-head .v2-k { margin: 0 0 10px; }
.v4-lede { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(238, 230, 208, .78); }
.v4-rig { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; }
.v4-scene { --lq: 110, 240, 150; --dim: 0; position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid #000; box-shadow: 0 6px 0 #000, inset 0 0 0 1px rgba(110, 240, 150, .2); background: #060a09; user-select: none; }
.v4-scene[data-liq='amber'] { --lq: 255, 190, 70; } .v4-scene[data-liq='blue'] { --lq: 90, 180, 255; } .v4-scene[data-liq='pink'] { --lq: 255, 120, 190; }
.v4-scene > * { position: absolute; }
.v4-wall { inset: 0; background: linear-gradient(rgba(238, 230, 208, .04) 1px, transparent 1px) 0 0 / 4cqw 4cqw, linear-gradient(90deg, rgba(238, 230, 208, .04) 1px, transparent 1px) 0 0 / 4cqw 4cqw, radial-gradient(90% 70% at 40% 10%, #142320, #070b0a 70%); }
.v4-tubes { left: 6%; right: 6%; top: 3%; height: 60%; display: flex; justify-content: space-around; pointer-events: none; }
.v4-tube { position: relative; width: 16%; height: 1.4cqw; background: #2a3432; border: .3cqw solid #000; transition: opacity .2s; }
.v4-tube::after { content: ''; position: absolute; left: -60%; right: -60%; top: 100%; height: 34cqw; background: linear-gradient(180deg, rgba(220, 255, 235, .16), transparent 80%); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .3s; }
.v4-tube.on { background: #e8fff0; box-shadow: 0 0 1.4cqw rgba(200, 255, 225, .9); }
.v4-tube.on::after { opacity: 1; }
.v4-scene.z-ceil .v4-tube.on { background: #2a3432; box-shadow: none; } .v4-scene.z-ceil .v4-tube::after { opacity: 0; }
.v4-sign { right: 4%; top: 9%; padding: .5cqw 1.2cqw .3cqw; font: 2.6cqw / 1 var(--term); text-transform: uppercase; letter-spacing: .12em; color: #ff8fc6; border: .3cqw solid currentColor; text-shadow: 0 0 1cqw rgba(255, 110, 180, .9); box-shadow: 0 0 1.4cqw rgba(255, 110, 180, .5), inset 0 0 1cqw rgba(255, 110, 180, .35); transition: opacity .3s, color .3s; animation: v4-neon 7s steps(1) infinite; white-space: nowrap; }
.v4-scene.z-sign .v4-sign { color: #4a3340; text-shadow: none; box-shadow: none; animation: none; }
@keyframes v4-neon { 0%, 91%, 94%, 100% { opacity: 1; } 92%, 93.5% { opacity: .55; } }
.v4-beacon { left: 3%; top: 9%; width: 3.4cqw; height: 2.4cqw; border-radius: 1.7cqw 1.7cqw 0 0; background: #5a1a14; border: .3cqw solid #000; }
.v4-beacon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40cqw; height: 6cqw; margin: -3cqw 0 0 0; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255, 70, 50, .45), transparent); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); opacity: 0; }
.v4-scene.alert .v4-beacon { background: #ff4a35; box-shadow: 0 0 2cqw rgba(255, 70, 50, .9); }
.v4-scene.alert .v4-beacon::after { opacity: 1; animation: v4-spin 1.2s linear infinite; }
@keyframes v4-spin { to { transform: rotate(360deg); } }
.v4-rail { left: 0; right: 0; top: 20%; height: 1.2cqw; background: linear-gradient(#56605d, #2a3230); border-top: .25cqw solid #000; border-bottom: .25cqw solid #000; }
.v4-trolley { left: 60%; top: 19%; width: 5cqw; height: 2cqw; margin-left: -2.5cqw; background: var(--yellow); border: .3cqw solid #000; z-index: 3; }
.v4-cable { position: absolute; left: 50%; top: 100%; width: .4cqw; height: 40px; margin-left: -.2cqw; background: #8a9490; transform-origin: 50% 0; }
.v4-claw { position: absolute; left: 50%; top: calc(100% + 40px); width: 6cqw; height: 4cqw; margin-left: -3cqw; }
.v4-claw::before { content: ''; position: absolute; left: 25%; right: 25%; top: 0; height: 1.2cqw; background: #6f7a77; border: .25cqw solid #000; }
.v4-claw i { position: absolute; top: 1cqw; width: 1cqw; height: 3cqw; background: #9aa5a1; border: .25cqw solid #000; transform-origin: 50% 0; transition: transform .25s; }
.v4-claw i:first-child { left: 18%; transform: rotate(24deg); } .v4-claw i:last-child { right: 18%; transform: rotate(-24deg); }
.v4-claw.shut i:first-child { transform: rotate(6deg); } .v4-claw.shut i:last-child { transform: rotate(-6deg); }
.v4-carry { position: absolute; left: 50%; top: 2.6cqw; width: 6.4cqw; margin-left: -3.2cqw; }
.v4-carry img { width: 100%; image-rendering: pixelated; display: block; }
.v4-tanks { left: 3%; bottom: 13%; width: 52%; display: flex; justify-content: space-between; align-items: flex-end; z-index: 2; }
.v4-tank { position: relative; width: 31%; display: flex; flex-direction: column; align-items: center; }
.v4-cap { width: 86%; height: 2cqw; background: linear-gradient(#77827f, #3a4442); border: .3cqw solid #000; }
.v4-gl { position: relative; display: block; width: 100%; aspect-ratio: .74; overflow: hidden; border: .35cqw solid #000; border-top: 0; background: rgba(var(--lq), .12); box-shadow: inset 0 0 2cqw rgba(var(--lq), .35); transition: background-color .4s, box-shadow .4s; }
.v4-gl::after { content: ''; position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.v4-scene.z-tank .v4-gl::after { opacity: 1; }
.v4-mon { position: absolute; z-index: 2; left: 14%; bottom: 8%; width: 72%; image-rendering: pixelated; transition: translate .4s ease-out; animation: v4-float 4s ease-in-out infinite; }
.v4-tank:nth-child(2) .v4-mon { animation-delay: -1.3s; } .v4-tank:nth-child(3) .v4-mon { animation-delay: -2.6s; }
@keyframes v4-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
.v4-liq { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.v4-liq.l0 { z-index: 1; top: 0; background: linear-gradient(180deg, rgba(var(--lq), .05), rgba(var(--lq), .32)); transition: background .4s; }
.v4-liq.l1 { z-index: 3; top: 10%; height: 4%; bottom: auto; left: -50%; right: -50%; background: repeating-linear-gradient(90deg, rgba(var(--lq), .55) 0 8%, rgba(var(--lq), .2) 8% 16%); animation: v4-wave 6s linear infinite; }
.v4-liq.l2 { z-index: 3; top: 0; height: 10%; bottom: auto; background: rgba(6, 10, 9, .55); }
.v4-liq.l3 { z-index: 3; bottom: 0; height: 18%; background: linear-gradient(0deg, rgba(var(--lq), .35), transparent); }
@keyframes v4-wave { to { transform: translateX(16%); } }
.v4-bubs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.v4-bubs i { position: absolute; bottom: 0; width: .9cqw; height: .9cqw; border-radius: 50%; border: .18cqw solid rgba(var(--lq), .9); opacity: 0; animation: v4-rise 3.2s ease-in infinite; display: none; }
.v4-bubs i:nth-child(1) { left: 14%; } .v4-bubs i:nth-child(2) { left: 70%; animation-delay: -.6s; } .v4-bubs i:nth-child(3) { left: 40%; animation-delay: -1.4s; } .v4-bubs i:nth-child(4) { left: 84%; animation-delay: -2.1s; }
.v4-bubs i:nth-child(5) { left: 26%; animation-delay: -2.7s; } .v4-bubs i:nth-child(6) { left: 58%; animation-delay: -.9s; } .v4-bubs i:nth-child(7) { left: 8%; animation-delay: -1.8s; } .v4-bubs i:nth-child(8) { left: 48%; animation-delay: -3s; }
.v4-scene[data-bub='1'] .v4-bubs i:nth-child(-n+3), .v4-scene[data-bub='2'] .v4-bubs i:nth-child(-n+5), .v4-scene[data-bub='3'] .v4-bubs i { display: block; }
.v4-scene[data-bub='3'] .v4-bubs i { animation-duration: 2.2s; }
@keyframes v4-rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 85% { opacity: .9; } 100% { transform: translateY(-1800%); opacity: 0; } }
.v4-shine { position: absolute; z-index: 3; left: 10%; top: 12%; width: 8%; height: 70%; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04)); pointer-events: none; }
.v4-base { display: block; width: 104%; height: 2.6cqw; background: linear-gradient(#4a5452, #262e2c); border: .3cqw solid #000; }
.v4-floorjars { right: 3%; bottom: 13%; width: 30%; display: flex; justify-content: flex-end; gap: 2%; z-index: 2; }
.v4-fj { width: 23%; flex: none; }
.v4-fj img { width: 100%; display: block; image-rendering: pixelated; }
.v4-chute { left: 57%; bottom: 13%; width: 7%; height: 9cqw; display: grid; place-items: end center; padding-bottom: .6cqw; font: 1.8cqw / 1 var(--term); text-transform: uppercase; color: var(--yellow); background: linear-gradient(180deg, #000, #1b2220); border: .3cqw solid #000; border-top: .8cqw solid var(--yellow); z-index: 1; }
.v4-pipe { left: 0; top: 30%; width: 6%; height: 2cqw; background: linear-gradient(#6c7774, #2f3836); border: .3cqw solid #000; border-left: 0; z-index: 3; }
.v4-pwheel { position: absolute; right: -1cqw; top: 50%; width: 3.6cqw; height: 3.6cqw; margin-top: -1.8cqw; border-radius: 50%; border: .5cqw solid #c33d2b; background: linear-gradient(#c33d2b, #c33d2b) 50% 50% / 100% .4cqw no-repeat, linear-gradient(#c33d2b, #c33d2b) 50% 50% / .4cqw 100% no-repeat; }
.v4-steam { position: absolute; right: -1cqw; top: -1cqw; width: 4cqw; height: 4cqw; pointer-events: none; }
.v4-steam i { position: absolute; left: 0; top: 0; width: 4cqw; height: 4cqw; border-radius: 50%; background: radial-gradient(circle, rgba(230, 240, 236, .7), rgba(230, 240, 236, 0) 70%); opacity: 0; }
.v4-floor { left: 0; right: 0; bottom: 0; height: 13%; background: repeating-linear-gradient(90deg, #1b2321 0 6cqw, #161d1b 6cqw 12cqw); border-top: .4cqw solid #000; }
.v4-dim { inset: 0; z-index: 5; background: #000; opacity: var(--dim); transition: opacity .35s; pointer-events: none; }
.v4-dim b { display: none; }
.v4-scene.dark .v4-dim { opacity: .82; }
.v4-strobe { inset: 0; z-index: 6; background: radial-gradient(80% 80% at 10% 15%, rgba(255, 70, 50, .9), rgba(255, 40, 30, .4)); opacity: 0; pointer-events: none; transition: opacity .3s; }
.v4-surge { inset: 0; z-index: 6; background: radial-gradient(70% 60% at 50% 20%, rgba(230, 255, 240, .8), transparent 70%); opacity: 0; pointer-events: none; }
.v4-tank.v4-hot { cursor: pointer; }

/* console */
.v4-console { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 14px; background: linear-gradient(180deg, #1a2220, #111816); border: 3px solid #000; box-shadow: 0 6px 0 #000, inset 0 0 0 1px rgba(238, 230, 208, .1), inset 0 2px 0 rgba(238, 230, 208, .08); }
.v4-lcd { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 0; min-height: 58px; padding: 8px 10px; font: 20px / 1.1 var(--term); color: #9dffbf; text-shadow: 0 0 6px rgba(110, 240, 150, .6); background: #04110a; border: 2px solid #000; box-shadow: inset 0 0 14px rgba(0, 0, 0, .8); white-space: nowrap; }
.v4-crow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.v4-cap-t { display: block; margin-top: 6px; font: 16px / 1 var(--term); text-transform: uppercase; letter-spacing: .06em; color: rgba(238, 230, 208, .65); white-space: nowrap; text-align: center; }
.v4-room button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.v4-lever { position: relative; width: 70px; height: 116px; flex: none; padding: 0; cursor: pointer; background: linear-gradient(180deg, #2a3331, #1a2120); border: 2px solid #000; box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(238, 230, 208, .12); }
.v4-lv-slot { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 10px; margin-left: -5px; background: #050807; border: 2px solid #000; }
.v4-lv-arm { position: absolute; left: 50%; bottom: 50%; width: 10px; height: 46px; margin-left: -5px; background: linear-gradient(90deg, #9aa5a1, #5d6764); border: 2px solid #000; transform-origin: 50% 100%; transform: rotate(-32deg); transition: transform .25s cubic-bezier(.4, 1.6, .5, 1); }
.v4-lv-arm::after { content: ''; position: absolute; left: 50%; top: -14px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a62, #b8331f 70%); border: 2px solid #000; }
.v4-lever.pulled .v4-lv-arm { transform: rotate(150deg); }
.v4-sws { display: flex; gap: 10px; }
.v4-sw { display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
.v4-sw i { position: relative; width: 44px; height: 64px; background: linear-gradient(180deg, #d9d2bd, #a9a28d); border: 2px solid #000; box-shadow: 0 3px 0 #000; }
.v4-sw i::after { content: ''; position: absolute; left: 50%; top: 10px; width: 14px; height: 22px; margin-left: -7px; background: linear-gradient(180deg, #5b6461, #2c3432); border: 2px solid #000; transition: transform .1s; transform: translateY(18px); }
.v4-sw[aria-pressed='true'] i::after { transform: none; background: linear-gradient(180deg, #8fffc0, #3fbf73); }
.v4-sw:active i { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.v4-knob, .v4-wheel { display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
.v4-knob i { position: relative; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #59625f, #232a29 70%); border: 3px solid #000; box-shadow: 0 3px 0 #000, 0 0 0 5px #0d1312; transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.v4-knob i::after { content: ''; position: absolute; left: 50%; top: 4px; width: 6px; height: 18px; margin-left: -3px; background: rgb(var(--kc, 110, 240, 150)); box-shadow: 0 0 6px rgb(var(--kc, 110, 240, 150)); }
.v4-wheel i { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 6px solid #c33d2b; background: linear-gradient(#c33d2b, #c33d2b) 50% 50% / 100% 5px no-repeat, linear-gradient(#c33d2b, #c33d2b) 50% 50% / 5px 100% no-repeat; box-shadow: 0 3px 0 #000, inset 0 0 0 2px #000; transform: rotate(var(--r, 0deg)); transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
.v4-fader { display: flex; flex-direction: column-reverse; align-items: center; flex: 1; min-width: 0; padding-bottom: 0; cursor: pointer; }
.v4-fader input { width: 100%; max-width: 140px; height: 28px; accent-color: var(--yellow); cursor: pointer; }
.v4-crane-b { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; font: 21px / 1 var(--term); text-transform: uppercase; color: #1b1405; cursor: pointer; white-space: nowrap; background: linear-gradient(180deg, #f4d468, #d6ad2d); border: 2px solid #000; box-shadow: 0 4px 0 #000, inset 0 2px 0 rgba(255, 255, 255, .35); transition: transform .06s, box-shadow .06s; }
.v4-crane-b:active, .v4-crane-b.is-down, .v4-lever:active, .v4-lever.is-down { transform: translateY(4px); box-shadow: 0 0 0 #000; }
.v4-crane-b[aria-disabled='true'] { filter: saturate(.4) brightness(.8); }
.v4-red { display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
.v4-red i { position: relative; width: 66px; height: 50px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, #121110 6px 12px); border: 2px solid #000; display: grid; place-items: center; }
.v4-red i::after { content: ''; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ff8a74, #d0301b 55%, #7a1408); border: 2px solid #000; box-shadow: 0 4px 0 #3a0a04; transition: transform .06s, box-shadow .06s; }
.v4-red:active i::after, .v4-red.is-down i::after { transform: translateY(3px); box-shadow: 0 1px 0 #3a0a04; }
.v4-red.lit i::after { background: radial-gradient(circle at 38% 32%, #ffd0c4, #ff4a35 55%, #a01a0a); box-shadow: 0 1px 0 #3a0a04, 0 0 18px rgba(255, 70, 50, .9); }
.v4-rig:has([data-liq='amber']) .v4-knob i { --kc: 255, 190, 70; } .v4-rig:has([data-liq='blue']) .v4-knob i { --kc: 90, 180, 255; } .v4-rig:has([data-liq='pink']) .v4-knob i { --kc: 255, 120, 190; }

@media (max-width: 1100px) { .v4-rig { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 900px) {
  .v4-rig { grid-template-columns: 1fr; }
  .v4-console { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 700px) {
  .v4-room-in { padding: 0 16px; }
  .v4-scene { aspect-ratio: 4 / 3; }
  .v4-tubes { top: 4%; } .v4-sign { font-size: 3.4cqw; top: 9%; }
  .v4-lede { font-size: 15px; }
  .v4-console { padding: 12px; gap: 12px; }
  .v4-lcd { font-size: 18px; }
  .v4-sws { gap: 6px; } .v4-sw i { width: 40px; }
  .v4-crane-b { font-size: 19px; padding: 0 10px; }
}
@media (max-width: 380px) { .v4-lever { width: 60px; } .v4-sw i { width: 36px; height: 58px; } .v4-knob i, .v4-wheel i { width: 50px; height: 50px; } .v4-crane-b { font-size: 17px; padding: 0 8px; gap: 6px; } }

/* ---------------------------------------------------------------- pause + reduced motion */
.v4-room.v4-off *, .v4-room.v4-off *::before, .v4-room.v4-off *::after,
html.mx-hashing .v4-room *, html.mx-hashing .v4-room *::before, html.mx-hashing .v4-room *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .v4-room *, .v4-room *::before, .v4-room *::after, .v4-flow { animation: none !important; }
  .v4-scene[data-bub] .v4-bubs i { opacity: .7; }
  .v4-bubs i:nth-child(odd) { bottom: 30%; } .v4-bubs i:nth-child(even) { bottom: 62%; }
  .v4-torch, .v4-strobe, .v4-surge { transition: none; }
  .v4-lv-arm, .v4-knob i, .v4-wheel i, .ic-valve, .ic-dial, .v4-spot { transition-duration: .01s; }
}

