/* gaylab.me — "lab console" terminal theme. Vanilla CSS, no build step. */
:root {
  --bg: #0a0c10;
  --panel: #0f1218;
  --panel-2: #0b0e14;
  --line: #1c2230;
  --frame: #2a3342;
  --fg: #c9d3e0;
  --dim: #66728a;
  --accent: #54e0b0;                 /* phosphor mint */
  --amber: #ffb454;
  --red: #ff5d6c;
  --grad: linear-gradient(90deg,#ff5d6c,#ffb454,#ffe05a,#54e0b0,#4db5ff,#b98cff);
  --mono: ui-monospace,"Cascadia Code","JetBrains Mono","SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --maxw: 900px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.65 var(--mono); letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; font-weight: 700; }
code { color: var(--accent); background: #121722; padding: .05em .35em; border-radius: 4px; }
.pr { color: var(--accent); font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* faint CRT scanlines + vignette (static, so it's fine with reduced-motion) */
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background:
    repeating-linear-gradient(to bottom, rgba(120,200,180,.03) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 30%, transparent 62%, rgba(0,0,0,.55) 100%);
}
.skip { position: absolute; left: -999px; background: var(--accent); color: #04120c; padding: .5em 1em; }
.skip:focus { left: 0; top: 0; z-index: 10; }

/* top bar */
.topbar { max-width: var(--maxw); margin: 0 auto; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--fg); font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }
.brand .prompt { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--dim); font-size: .9rem; }
.nav a:hover { color: var(--fg); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 40px; }

/* terminal hero */
.term {
  border: 1px solid var(--frame); border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 24px 70px -34px #000, inset 0 0 70px -46px var(--accent);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0c0f15; border-bottom: 1px solid var(--line); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.d-r { background: #ff5f56; } .d-y { background: #ffbd2e; } .d-g { background: #27c93f; }
.term-title { margin-left: 8px; color: var(--dim); font-size: .82rem; }
.term-body { padding: 26px 26px 30px; }
.line { margin: 0 0 6px; color: var(--dim); }
.wordmark { font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.05; margin: 12px 0 10px; color: var(--fg); }
.wordmark .grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pan 9s linear infinite; }
@keyframes pan { to { background-position: 200% center; } }
.tag { max-width: 58ch; color: var(--fg); margin: 0 0 18px; }
.boot { color: var(--accent); margin: 16px 0 0; }
.boot.warn { color: var(--amber); }
.cursor { display: inline-block; width: .55em; height: 1.05em; background: currentColor; margin-left: 5px; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* section heads, prompt-style */
.block { margin-top: 48px; }
.head { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--fg); }
.head .rule { flex: 1; border-top: 1px dashed var(--line); }
.note { color: var(--dim); margin: 12px 0 18px; }

/* server rows (systemctl-ish output) */
.rows { display: flex; flex-direction: column; gap: 2px; }
.row, .mc-world { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid transparent; border-radius: 8px; }
.row:hover { border-color: var(--line); background: #0d1017; }
.glyph { font-size: .7rem; line-height: 1; }
.g-online { color: var(--accent); } .g-offline { color: var(--red); } .g-maint { color: var(--amber); } .g-planned { color: var(--dim); }
.rc { min-width: 0; display: flex; flex-direction: column; }
.rname { font-weight: 700; color: var(--fg); }
.rdesc { color: var(--dim); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rright { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.pill { font-size: .72rem; letter-spacing: .3px; white-space: nowrap; }

/* minecraft sub-panel */
.mc { border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px 10px; margin-bottom: 14px; background: #0d1017; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 0 4px 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.mc-name { font-weight: 700; color: var(--fg); }
.mc-name small { color: var(--dim); font-weight: 400; margin-left: 8px; }
.mc-world .rdesc { white-space: normal; }

/* address chip */
.addr { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 700; color: var(--accent); background: #0b1a15; border: 1px solid #17372c; border-radius: 7px; padding: 7px 12px; cursor: pointer; transition: border-color .15s, transform .1s; }
.addr:hover { border-color: var(--accent); }
.addr:active { transform: scale(.97); }
.addr .br { color: var(--dim); }
.addr .ic { color: var(--dim); font-size: .9em; }

/* tree */
.tree { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #0d1017; overflow-x: auto; font-size: .95rem; }
.t-row { display: block; white-space: pre; }
.t-branch { color: var(--frame); }
.t-name { color: var(--accent); font-weight: 700; }
.t-desc { color: var(--dim); }

/* start */
.startgrid { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.startgrid .note { margin: 0; flex: 1; min-width: 260px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: #04120c; background: var(--accent); border: 0; border-radius: 7px; padding: 10px 18px; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* statusline footer */
.statusline { max-width: var(--maxw); margin: 44px auto 0; display: flex; align-items: stretch; font-size: .8rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.seg { padding: 12px 14px; color: var(--dim); border-right: 1px solid var(--line); display: flex; align-items: center; }
.seg-accent { color: #04120c; background: var(--accent); font-weight: 700; border-right: 0; }
.seg.push { margin-left: auto; }
.seg-admin { border-right: 0; }
.seg-admin a { color: var(--dim); }
.seg-admin a:hover { color: var(--fg); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); background: #0f1218; color: var(--fg); border: 1px solid var(--frame); padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 5; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "\2713 "; color: var(--accent); }

/* 404 */
.center-page { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

@media (max-width: 560px) {
  .nav { display: none; }
  .row, .mc-world { grid-template-columns: 16px 1fr; }
  .rright { grid-column: 1 / -1; padding-left: 28px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .cursor { opacity: 1; }
}
