/* the site's own fonts (spaceport.neighb.io/fonts); opened from disk they're simply missing and the fallbacks apply */
@font-face { font-family: "Michroma"; src: url(/fonts/Michroma-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/SpaceMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
.back { display: inline-block; margin: 0 0 10px; color: var(--dim); font-size: 11px; text-decoration: none; }
.back:hover { color: var(--amber); }
:root {
  --bg: #0d1117; --panel: rgba(13, 17, 23, .88); --rule: #2a313c; --text: #e6edf3; --dim: #8b96a3;
  --amber: #f2b33d; --teal: #3ee6c8;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Michroma", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 13px/1.45 var(--mono); }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; }
#labels { position: fixed; inset: 0; pointer-events: none; }
.dim-label { position: absolute; transform: translate(-50%, -50%); padding: 2px 6px; border-radius: 3px;
  background: rgba(13, 17, 23, .8); color: var(--amber); font: 11px var(--mono); white-space: nowrap; }
body.day .dim-label { background: rgba(255, 255, 255, .85); color: #8a5a00; }

#panel { position: fixed; top: 12px; left: 12px; bottom: 12px; width: 320px; overflow-y: auto; padding: 16px 16px 8px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; backdrop-filter: blur(6px); }
.kicker { margin: 0 0 4px; color: var(--amber); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 6px; font: 18px/1.2 var(--display); letter-spacing: .04em; }
h2 { margin: 0 0 8px; color: var(--dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.dims { margin: 0; color: var(--dim); font-size: 12px; }
section { padding: 12px 0; border-top: 1px solid var(--rule); }
header { padding-bottom: 12px; }
.row { display: flex; gap: 6px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.checks { margin-top: 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
.checks label { cursor: pointer; }
button { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 4px; background: #161b22; color: var(--text);
  font: 12px var(--mono); cursor: pointer; }
button:hover { border-color: var(--amber); }
button.on { border-color: var(--amber); color: var(--amber); }
input[type=range] { width: 100%; margin: 0 0 8px; accent-color: var(--amber); }
.step-num { min-width: 42px; text-align: center; color: var(--amber); }
.step-text { margin: 8px 0 0; min-height: 3em; color: var(--text); font-size: 12px; }

.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.layers label { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; }
.sw { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.layers .n { color: var(--dim); font-size: 11px; }

.note { margin: 0 0 6px; color: var(--dim); font-size: 11px; }
table.cut { width: 100%; border-collapse: collapse; font-size: 11px; }
table.cut td { padding: 4px 4px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cut tr { cursor: pointer; }
table.cut tr:hover td, table.cut tr.on td { color: var(--amber); }
table.cut td.q { text-align: right; color: var(--dim); white-space: nowrap; }
footer p { color: var(--dim); font-size: 11px; margin: 10px 0; }

#tip { position: fixed; pointer-events: none; padding: 6px 8px; border-radius: 4px; background: rgba(13, 17, 23, .92);
  border: 1px solid var(--rule); font-size: 11px; max-width: 280px; z-index: 5; }
#tip b { color: var(--amber); font-weight: 400; }
#info { position: fixed; right: 12px; bottom: 12px; width: 300px; padding: 12px 14px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 8px; font-size: 12px; }
#info h3 { margin: 0 0 6px; font: 13px var(--display); color: var(--amber); }
#info p { margin: 2px 0; }
#info .x { position: absolute; top: 6px; right: 8px; padding: 0 6px; }

@media (max-width: 720px) {
  #panel { top: auto; height: 46vh; left: 6px; right: 6px; bottom: 6px; width: auto; }
  #info { right: 6px; left: 6px; width: auto; top: 6px; bottom: auto; }
}
