/* Ripcord — a rigging room seen from the workbench: the wall of rigs is fixed on the left and
   never scrolls, the work runs down the right. Signal orange on black, stencil type, no panels. */

@font-face{
  font-family:"Fjalla";
  src:url("/fonts/FjallaOne.ttf") format("truetype");
  font-weight:400; font-display:block;
}

:root{
  --orange:#ff6a00;
  --yellow:#ffd400;
  --ink:#0d0d0d;
  --ink-2:#141414;
  --line:#242424;
  --steel:#8a8f98;
  --paper:#f2f2f2;
  --stencil:"Fjalla", "Arial Narrow", sans-serif;
  --mono:ui-monospace, "SF Mono", Consolas, monospace;
  --wall:clamp(210px, 20vw, 320px);
}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--ink); color:var(--paper); font-family:var(--mono); font-size:15px; line-height:1.55}
h1,h2{font-family:var(--stencil); font-weight:400; margin:0; letter-spacing:.5px}
b{color:var(--yellow)}
code{font-family:var(--mono); background:#ffffff14; padding:3px 8px; color:var(--paper)}
.note{color:var(--steel); font-size:13px}
.fine{font-size:12px; color:var(--steel)}
.empty{color:var(--steel); padding:16px 0; margin:0}

/* ---------- the wall on the left ---------- */
.wall{
  position:fixed; left:0; top:0; bottom:0; width:var(--wall);
  background:#000; border-right:3px solid var(--orange);
  display:flex; flex-direction:column; align-items:center;
  padding:16px 0 12px; overflow:hidden; z-index:5;
}
.wall-top{display:flex; align-items:center; gap:10px}
.wall-mark{width:22px; height:22px}
.wall-name{font-family:var(--stencil); font-size:20px; letter-spacing:4px; color:var(--orange)}
.wall-rack{
  flex:1; min-height:0; width:auto; max-width:100%;
  object-fit:contain; object-position:center; margin:12px 0;
}
.wall-foot{display:flex; flex-direction:column; gap:4px; text-align:center}
.wall-cell{font-family:var(--stencil); font-size:12px; letter-spacing:2px; color:#4e5257}

/* ---------- the room on the right ---------- */
.room{margin-left:var(--wall); padding:0 clamp(18px,3vw,46px) 70px; max-width:1060px}

/* the only sticky thing on the page is a counter, not a nav bar */
.board{
  position:sticky; top:0; z-index:4;
  display:flex; align-items:center; gap:22px;
  background:linear-gradient(180deg, var(--ink) 74%, #0d0d0dd9);
  padding:18px 0 14px; border-bottom:1px solid var(--line);
}
.board-count{display:flex; align-items:baseline; gap:10px}
.board-num{font-family:var(--stencil); font-size:52px; line-height:1; color:var(--orange)}
.board-label{font-family:var(--stencil); font-size:14px; letter-spacing:2px; color:var(--steel)}
.board-state{
  margin-left:auto; display:flex; align-items:center; gap:9px;
  font-family:var(--stencil); font-size:14px; letter-spacing:2px; color:var(--yellow);
}
.lamp{width:10px; height:10px; background:var(--orange); display:block; animation:blink 2.4s steps(1) infinite}
@keyframes blink{0%,70%{opacity:1} 71%,100%{opacity:.25}}
@media (prefers-reduced-motion:reduce){ .lamp{animation:none} }

/* ---------- buttons ---------- */
.btn{
  font-family:var(--stencil); font-size:14px; letter-spacing:1.5px;
  background:var(--orange); color:var(--ink); border:0; padding:10px 18px; cursor:pointer;
}
.btn:hover{background:var(--yellow)}
.btn[disabled]{background:#333; color:#7c7c7c; cursor:not-allowed}
.btn-small{font-size:12px; padding:6px 10px}
.btn-big{font-size:24px; padding:16px 36px}

/* ---------- pitch ---------- */
.pitch{padding:46px 0 40px; border-bottom:1px solid var(--line)}
.pitch h1{font-size:clamp(36px,4.6vw,62px); line-height:1.02; max-width:16ch}
.pitch p{margin:16px 0 26px; max-width:52ch; font-size:15px}

/* ---------- sections: separated by rules, never by boxes ---------- */
section{padding:34px 0; border-bottom:1px solid var(--line)}
.rack-head{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:14px}
h2{font-size:22px; color:var(--orange)}

.rows{display:flex; flex-direction:column}
.prow{
  display:grid; grid-template-columns:1fr 130px 110px 120px; gap:12px; align-items:center;
  padding:13px 0; border-bottom:1px dashed #ffffff1a;
}
.prow:last-child{border-bottom:0}
.prow-sym{font-family:var(--stencil); font-size:19px; letter-spacing:1px}
.prow-addr{display:block; font-size:11px; color:var(--steel)}
.prow-val{text-align:right; font-variant-numeric:tabular-nums}
.prow-state{font-family:var(--stencil); font-size:12px; letter-spacing:1.5px; color:var(--steel); text-align:right}
.tape{
  font-family:var(--stencil); font-size:12px; letter-spacing:1.5px;
  background:var(--yellow); color:var(--ink); padding:8px 14px; border:0; cursor:pointer; justify-self:end;
}
.tape:hover{background:var(--orange)}
.tape[disabled]{background:#333; color:#7c7c7c; cursor:not-allowed}

/* ---------- the rule ---------- */
.rule{
  display:grid; grid-template-columns:20px 84px 1fr; gap:14px; align-items:center;
  padding:16px 0; border-top:1px solid var(--line); cursor:pointer;
}
.rule input{accent-color:var(--orange); width:18px; height:18px}
.rule-tag{
  font-family:var(--stencil); font-size:14px; letter-spacing:2px;
  border:2px solid var(--orange); color:var(--orange); text-align:center; padding:4px 0;
}
.rule-text{font-size:15px}
#dropRange{width:min(380px,100%); accent-color:var(--orange); margin:2px 0 0 118px}

/* ---------- costs ---------- */
.costs{display:grid; grid-template-columns:280px 1fr; gap:34px; align-items:center}
.canopy{width:100%; filter:drop-shadow(0 8px 0 #00000080)}
.cost-list{list-style:none; margin:10px 0 12px; padding:0}
.cost-list li{display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-bottom:1px dashed #ffffff1a; font-size:14px}
.cost-list b{font-family:var(--stencil); font-size:20px; color:var(--orange); letter-spacing:1px}

/* ---------- pulled ---------- */
.pulled{list-style:none; margin:0; padding:0; max-height:320px; overflow:auto}
.pulled li{display:flex; gap:14px; align-items:center; padding:11px 0; border-bottom:1px dashed #ffffff1a; font-size:13px}
.pulled .when{margin-left:auto; color:var(--steel); font-size:12px}
.flag{font-family:var(--stencil); font-size:11px; letter-spacing:1.5px; background:var(--orange); color:var(--ink); padding:3px 9px}

/* ---------- steps ---------- */
.steps{list-style:none; margin:0; padding:0}
.steps li{display:grid; grid-template-columns:52px 1fr; gap:16px; padding:12px 0; border-top:1px solid var(--line); font-size:14px}
.steps b{font-family:var(--stencil); color:var(--orange); font-size:20px; letter-spacing:1px}

/* ---------- the tag: a label wired to the rig, not a bar across the page ---------- */
.tag{
  border-bottom:0; display:grid; grid-template-columns:86px 1fr; gap:18px; align-items:start;
  padding-top:40px;
}
.tag-hook{width:86px}
.tag-body{
  background:var(--ink-2); border:1px solid var(--line); border-left:4px solid var(--orange);
  padding:18px 20px; display:flex; flex-wrap:wrap; align-items:center; gap:12px;
}
.tag-line{font-family:var(--stencil); font-size:18px; letter-spacing:2px; color:var(--orange)}
.links{display:flex; gap:16px; font-family:var(--stencil); font-size:14px; letter-spacing:1.5px}
.links a{color:var(--orange); text-decoration:none; border-bottom:1px solid #ff6a0059}
.links a:hover{color:var(--yellow)}
.tag-body .fine{flex-basis:100%; margin:6px 0 0}

@media (max-width:900px){
  :root{--wall:0px}
  .wall{
    position:static; width:auto; flex-direction:row; align-items:center; justify-content:space-between;
    border-right:0; border-bottom:3px solid var(--orange); padding:10px 16px;
  }
  .wall-rack{display:none}
  .wall-foot{flex-direction:row; gap:12px}
  .room{margin-left:0}
  .costs{grid-template-columns:1fr}
  .canopy{max-width:220px}
  .prow{grid-template-columns:1fr 110px; row-gap:6px}
  .prow-state{text-align:left}
  .tape{justify-self:start}
  .tag{grid-template-columns:1fr}
  .tag-hook{display:none}
  #dropRange{margin-left:0}
}

/* links that exist but lead nowhere until the coin launches */
.links a.soon{opacity:.4; pointer-events:none; cursor:default}

/* a coin the index has not caught up with yet, added by hand */
.add-coin{
  display:inline-block; margin-top:10px; cursor:pointer;
  background:transparent; border:1px dashed currentColor; opacity:.7;
  font:inherit; font-size:12px; padding:6px 10px; color:inherit;
}
.add-coin:hover{opacity:1}
