:root {
  --bg: #0f1626;
  --ink: #f2e3a0;
  --dim: #b8ad7c;
  --faint: #5c5a4a;
  --line: #e9d98f;
  --link: #ffe98a;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 140px;
}

.title {
  border: 3px double var(--line);
  padding: 14px 16px 10px;
  text-align: center;
  margin-bottom: 18px;
}
.title pre {
  margin: 0;
  font-size: clamp(7px, 1.6vw, 13px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow: hidden;
}
.title .sub {
  color: var(--dim);
  font-size: 12px;
  margin-top: 10px;
}
.title .sub a { color: var(--link); text-decoration: none; border-bottom: 1px solid var(--faint); }
.title .sub a:hover { border-bottom-color: var(--link); }
.title .buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.title .btn {
  color: var(--link);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 5px 14px;
  letter-spacing: 0.04em;
}
.title .btn:hover { background: var(--line); color: var(--bg); }

.frame {
  border: 3px double var(--line);
  margin: 0 0 18px;
  animation: in 120ms ease-out;
}
@keyframes in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.section {
  padding: 10px 14px;
  border-top: 3px double var(--line);
}
.section:first-child { border-top: 0; }
.section .head { margin: 0 0 8px; }
.section .head::before, .section .head::after {
  content: "\2591\2592\2593\2593\2592\2591";
  color: var(--dim);
  margin: 0 8px;
}
.section pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font: inherit;
}
.meta { color: var(--ink); }
.meta b { font-weight: 400; }
.frame.error .section { color: #f5b7a1; border-color: #f5b7a1; }
.frame.error { border-color: #f5b7a1; }

a.cmd, a.id, a.handle, a.url {
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dotted var(--faint);
}
a.cmd:hover, a.id:hover, a.handle:hover, a.url:hover { border-bottom: 1px solid var(--link); }
.sep { color: var(--faint); }
.dimline { color: var(--dim); }

.promptbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top: 3px double var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.promptbar .inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.promptbar label { white-space: nowrap; }
.promptbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  caret-color: var(--ink);
}
.promptbar .hint {
  max-width: 920px;
  margin: 6px auto 0;
  color: var(--faint);
  font-size: 12px;
}
.promptbar .hint a { color: var(--dim); text-decoration: none; margin-right: 10px; cursor: pointer; }
.promptbar .hint a:hover { color: var(--link); }

.busy { color: var(--dim); padding: 10px 14px; }
.busy::after { content: ""; animation: dots 1s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

@media (max-width: 600px) {
  body { font-size: 13px; }
  .section { padding: 9px 11px; }
  .section .head::before, .section .head::after { content: "\2592\2593\2592"; margin: 0 6px; }
}
