/* Redstone (redstone.js): the build working in 3D, its bar of controls, "How it works" beside it. */
.redstone,.rstudio{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start;margin:6px 0 30px}
.rs-main{position:relative;min-width:0}
.rs-main:fullscreen,.rs-main.rs-full{display:flex;flex-direction:column;background:#0c0c0e}
.rs-main.rs-full{position:fixed;inset:0;z-index:1000;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
.rs-main:fullscreen .rs-stage,.rs-main.rs-full .rs-stage{flex:1;height:auto;min-height:0;border:0;border-radius:0}
.rs-main:fullscreen .rs-card,.rs-main.rs-full .rs-card{margin:0 8px 8px}
/* the harvest, under the title */
.rs-hud{display:inline-flex;align-items:center;gap:10px;margin-top:10px;padding:6px 10px;border-radius:10px;background:#141418d9;border:1px solid #ffffff1f;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.rs-hud span{display:flex;align-items:center;gap:6px}
.rs-hud img{width:18px;height:18px;image-rendering:pixelated}
.rs-hud b{font:500 17px/1 var(--px);color:#fff;min-width:14px}
.rs-title .rs-hud small{display:inline;font:500 11px/1 Inter,sans-serif;letter-spacing:0;color:#8c8b92}
.rs-stage{position:relative;height:min(74vh,680px);min-height:420px;border:1px solid var(--edge);border-radius:16px;overflow:hidden;
	background:radial-gradient(ellipse 85% 75% at 50% 40%,#34343c 0,#1b1b1f 60%,#111114 100%)}
.rs-view,.rs-view canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.rs-title{position:absolute;left:16px;top:14px;max-width:min(420px,calc(100% - 200px));pointer-events:none}
.rs-title small{display:flex;align-items:center;gap:7px;font:700 10px/1 Inter,sans-serif;letter-spacing:.18em;color:#ff938c}
.rs-title small span{color:#8c8b92}
.rs-title small i{width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 8px var(--red)}
.rs-title h2{font:500 30px/1.05 var(--px);color:#fff;margin:8px 0 6px;text-shadow:0 2px 12px #000a}
.rs-title p{font-size:13px;line-height:1.45;color:#c9c8cc;margin:0;text-shadow:0 1px 8px #000c}
.rs-tip{position:absolute;z-index:3;pointer-events:none;display:grid;gap:2px;background:#141418ee;border:1px solid #ffffff22;border-radius:10px;padding:7px 10px;font-size:12px;color:#c9c8cc}
.rs-tip b{color:#fff;font-size:12.5px}
/* the tools, on the right as on a build's page: the two ways to learn it, then a toolbar (a popover each for the speed
   and the settings) */
.rs-tools{position:absolute;right:14px;top:14px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.rs-mode{display:flex;align-items:center;gap:7px;font:600 13px/1 Inter,sans-serif;color:#fff;background:#141416d9;border:1px solid #ffffff2a;border-radius:9px;padding:9px 12px;cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.rs-mode svg{width:15px;height:15px;flex:none}
.rs-mode:hover,.rs-mode.on{background:var(--red);border-color:var(--red)}
.rs-lk svg{width:11px;height:11px;display:block;opacity:.75}
.rs-tb{display:flex;flex-direction:column;gap:2px;padding:4px;margin-top:2px;background:#141416d9;border:1px solid #ffffff2a;border-radius:11px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.rs-tb button{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:8px;background:none;color:#c9c8cc;cursor:pointer;transition:background .15s,color .15s}
.rs-tb button svg{width:18px;height:18px}
.rs-tb button:hover{background:#ffffff14;color:#fff}
.rs-tb button.on{background:var(--red);color:#fff}
.rs-tb button:disabled{opacity:.28;cursor:default;background:none}
.rs-tb [data-tool=speed] svg{margin-top:-9px}
.rs-tb button small{position:absolute;left:0;right:0;bottom:5px;font:700 8.5px/1 Inter,sans-serif;text-align:center;color:inherit}
.rs-tools.locked .rs-tb button{opacity:.4}
.rs-pop{position:absolute;right:calc(100% + 8px);z-index:5;display:grid;gap:2px;min-width:104px;padding:8px;border-radius:12px;background:#16161af7;border:1px solid #ffffff2a;box-shadow:0 14px 40px #000a}
.rs-pop.wide{width:250px}
.rs-pop small{font:700 9.5px/1 Inter,sans-serif;letter-spacing:.16em;color:#8c8b92;padding:4px 6px 6px}
.rs-opt{border:0;background:none;color:#c9c8cc;font:600 13px Inter,sans-serif;text-align:left;padding:8px 10px;border-radius:7px;cursor:pointer}
.rs-opt:hover{background:#ffffff12;color:#fff}.rs-opt.on{background:var(--red);color:#fff}
.rs-set{display:flex;gap:10px;align-items:flex-start;padding:4px 6px 6px;cursor:pointer}
.rs-set input{accent-color:var(--red);margin:2px 0 0;flex:none}
.rs-set span{display:grid;gap:3px;font-size:12px;line-height:1.4;color:#a9a8ae}.rs-set b{font-size:13px;color:#fff}
.rs-pop p{margin:2px 4px 10px;font-size:12.5px;line-height:1.45;color:#c9c8cc}.rs-pop p b{color:#fff}
.rs-pop .rs-btn{justify-content:center}
.rs-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #ffffff26;background:#ffffff0d;color:#fff;cursor:pointer}
.rs-ico svg{width:18px;height:18px}.rs-ico.big{width:44px;height:44px;background:var(--red);border-color:var(--red)}
.rs-ico:disabled{opacity:.35;cursor:default}
.rs-btn{display:inline-flex;align-items:center;gap:6px;font:600 12.5px/1 Inter,sans-serif;color:#fff;background:var(--red);border:1px solid var(--red);border-radius:999px;padding:10px 14px;cursor:pointer;text-decoration:none}
.rs-btn:hover{filter:brightness(1.1);text-decoration:none}
.rs-side{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px 16px 6px}
.rs-side h3{font:500 22px var(--px);margin:0 0 6px}
.rs-note{color:var(--muted);font-size:12.5px;margin:0 0 12px}
/* the side: the parts as a path the signal runs along, a node each (lit once passed) */
.rs-start{width:100%;justify-content:center;margin:0 0 14px;padding:12px 14px;font-size:13px}
.rs-start svg{width:15px;height:15px}
.rs-why{list-style:none;margin:0 0 10px;padding:0;display:grid}
.rs-why li{position:relative;padding-left:30px}
.rs-why li::before{content:'';position:absolute;left:10px;top:0;bottom:0;width:2px;background:var(--line)}
.rs-why li:first-child::before{top:50%}.rs-why li:last-child::before{bottom:50%}
.rs-why li.done::before,.rs-why li.on::before{background:var(--red)}
.rs-why li.on::before{bottom:50%}.rs-why li.on:first-child::before{display:none}
.rs-why li::after{content:'';position:absolute;left:5px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:var(--panel);border:2px solid #4a4950;box-sizing:border-box;transition:.2s}
.rs-why li.done::after{background:var(--red);border-color:var(--red)}
.rs-why li.on::after{background:#fff;border-color:var(--red);box-shadow:0 0 0 4px #ff3b3b33,0 0 14px var(--red)}
.rs-why button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:10px;color:var(--soft);padding:9px 10px;margin:2px 0;cursor:pointer;transition:.15s}
.rs-why button:hover{background:var(--panel2);color:var(--text)}
.rs-why button span{font:700 10px/1 Inter,sans-serif;letter-spacing:.08em;color:var(--dim)}
.rs-why li.on button{background:#ff3b3b14;border-color:#ff3b3b55;color:#fff}
.rs-why li.on button span{color:#ff938c}
.rs-why.locked li{display:flex;align-items:center;gap:10px;padding:9px 10px 9px 30px;color:var(--dim)}
.rs-why.locked li::after{border-color:#3a3940}
.rs-why.locked span svg{width:14px;height:14px;display:block}

/* the card of the tour and of Build it: a slim bar at the bottom of the stage; the live labels in the 3D */
.rs-card{position:absolute;left:12px;right:12px;bottom:12px;z-index:4;padding:0 12px 10px;border-radius:14px;
	background:#141418e6;border:1px solid #ffffff1f;box-shadow:0 14px 40px #0009;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.rs-path{display:flex;align-items:center;height:16px;margin:0 4px}
.rs-path i{flex:1;height:2px;background:#ffffff1c;transition:background .3s}
.rs-path i.lit{background:var(--red);box-shadow:0 0 6px #ff3b3b88}
.rs-path button{width:9px;height:9px;flex:none;padding:0;border-radius:50%;border:2px solid #55545b;background:#16161a;cursor:pointer;transition:.25s}
.rs-path button.lit{background:var(--red);border-color:var(--red)}
.rs-path button.on{background:#fff;border-color:var(--red);box-shadow:0 0 0 3px #ff3b3b33,0 0 10px var(--red)}
.rs-card-row{display:flex;align-items:center;gap:10px}
.rs-card-n{font:500 15px/1 var(--px);color:#fff;flex:none}.rs-card-n i{font-style:normal;color:#6f6e75;margin-left:2px}
.rs-card-body{flex:1;min-width:0;display:grid;gap:3px;animation:rsin .45s cubic-bezier(.2,.8,.2,1)}
.rs-card-body b{font:500 18px/1.1 var(--px);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-card-body span{font-size:12.5px;color:#a9a8ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@keyframes rsin{from{opacity:0;transform:translateY(6px)}}
.rs-card .rs-ico{flex:none}.rs-card .rs-ico[data-card=prev] svg{transform:scaleX(-1)}
.rs-card .rs-ico.big{font:700 18px/1 Inter,sans-serif;color:#fff}
.rs-x{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;border:1px solid #ffffff22;background:none;color:#8c8b92;font:400 18px/1 Inter,sans-serif;cursor:pointer}
.rs-x:hover{color:#fff;border-color:#ffffff55}
.rs-tags{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.rs-tag{position:absolute;left:0;top:0;font:800 9.5px/1 Inter,sans-serif;letter-spacing:.1em;color:#a9a8ae;white-space:nowrap;padding:5px 7px;border-radius:6px;
	background:#121216e8;border:1px solid #ffffff2a;transition:background .15s,color .15s,border-color .15s,box-shadow .15s}
.rs-tag::after{content:'';position:absolute;left:50%;top:100%;width:1px;height:7px;background:#ffffff38}
.rs-tag.on{color:#fff;background:#d81f25;border-color:#ff6b62;box-shadow:0 0 14px #ff2a2a99}
.rs-tag.on::after{background:#ff5a52}
.rs-tag.num{min-width:11px;text-align:center;padding:4px 5px;border-radius:999px;letter-spacing:0;font-size:10px}
.rs-tag.num::after{height:5px}
.rs-error{padding:30px;color:var(--soft)}
@media (max-width:980px){.redstone,.rstudio{grid-template-columns:1fr}}
@media (max-width:600px){
	.rs-mode{padding:10px}.rs-mode span,.rs-lk{display:none}
	.rs-title{max-width:calc(100% - 90px)}
	.rs-card{position:static;margin-top:8px;padding:0 10px 9px;box-shadow:none}
	.rs-card-row{gap:8px}.rs-card-body b{font-size:16px}.rs-card-body span{font-size:12px}
	.rs-card .rs-ico{width:36px;height:36px}.rs-card .rs-ico.big{width:42px;height:42px}
	.rs-tag{font-size:8.5px;padding:4px 5px}.rs-tag.num{font-size:9px;padding:3px 4px}
	.rs-stage{height:72vh;min-height:460px}
	.rs-title h2{font-size:24px}.rs-title p{display:none}
}

/* its picture for the Explore page (redstone.js thumb, localhost only): the stage alone, square */
.rs-thumbing .rs-main{position:fixed;left:0;top:0;width:720px;height:720px;z-index:5000}
.rs-thumbing .rs-stage{height:720px;min-height:0;border:0;border-radius:0}
.rs-thumbing .rs-title,.rs-thumbing .rs-tools,.rs-thumbing .rs-tags,.rs-thumbing .rs-card,.rs-thumbing .rs-tip{display:none!important}

/* the Redstone Studio: its health check */
.rsh h4{font:700 10.5px/1 Inter,sans-serif;letter-spacing:.16em;color:var(--dim);margin:18px 0 8px;text-transform:uppercase}
.rsh-status{display:flex;gap:12px;align-items:flex-start;padding:12px 13px;border-radius:12px;border:1px solid var(--line);background:var(--panel2)}
.rsh-status i{width:12px;height:12px;flex:none;margin-top:4px;border-radius:50%;background:#8c8b92}
.rsh-status span{display:grid;gap:4px;font-size:12.5px;line-height:1.45;color:var(--soft)}
.rsh-status b{font:500 19px/1.1 var(--px);color:#fff}
.rsh-status.ok{border-color:#3ecf6a66;background:#3ecf6a12}.rsh-status.ok i{background:#3ecf6a;box-shadow:0 0 10px #3ecf6a}
.rsh-status.warn{border-color:#ffc23d66;background:#ffc23d10}.rsh-status.warn i{background:#ffc23d;box-shadow:0 0 10px #ffc23d}
.rsh-status.bad,.rsh-status.none{border-color:#ff3b3b77;background:#ff3b3b14}.rsh-status.bad i,.rsh-status.none i{background:var(--red);box-shadow:0 0 10px var(--red)}
.rsh-nums{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px;margin:10px 0 0}
.rsh-nums div{display:grid;gap:4px;padding:8px 10px;border-radius:10px;background:var(--panel2);border:1px solid var(--line)}
.rsh-nums small{font:700 9px/1.2 Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.rsh-nums b{font:500 17px/1 var(--px);color:#fff}
.rsh-checks{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:5px}
.rsh-checks button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:9px 10px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);color:var(--text);cursor:pointer}
.rsh-checks button:disabled{cursor:default}
.rsh-checks button:not(:disabled):hover{border-color:#ffffff55}
.rsh-checks i{display:grid;place-items:center;width:20px;height:20px;flex:none;border-radius:50%;font:800 11px/1 Inter,sans-serif;font-style:normal;color:#0c0c0e;background:#3ecf6a}
.rsh-checks span{display:grid;gap:2px;flex:1;font-size:12px;line-height:1.4;color:var(--muted)}
.rsh-checks b{font-size:13px;color:var(--text)}
.rsh-checks em{flex:none;align-self:center;font:600 11px/1 Inter,sans-serif;font-style:normal;color:#fff;padding:5px 8px;border-radius:999px;background:#ffffff14}
.rsh-checks li.ok span{color:var(--dim)}
.rsh-checks li.bad button{border-color:#ff3b3b66;background:#ff3b3b10}.rsh-checks li.bad i{background:var(--red);color:#fff}
.rsh-checks li.warn button{border-color:#ffc23d55;background:#ffc23d0d}.rsh-checks li.warn i{background:#ffc23d}
.rsh-checks li.tip button{border-color:#5aa9ff55;background:#5aa9ff0d}.rsh-checks li.tip i{background:#5aa9ff}
.rsh-start{display:grid;gap:6px}
.rsh-start .rs-opt{border:1px solid var(--line);background:var(--panel2);color:var(--text)}
.rsh-file{justify-content:center;margin-top:4px}.rsh-file svg{width:16px;height:16px}.rsh-file.locked{opacity:.5}
.rsh-start .rs-note{margin:2px 0 0}
.rsh-import:empty{display:none}
