:root {
  --ink: #ffb347;
  --ink-dim: #a9782f;
  --paper: #0b0905;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1a1408, #050402 70%);
  color: var(--ink);
  font-family: var(--mono);
  display: grid;
  place-items: center;
  padding: 18px;
}
.desk {
  width: min(900px, 100%);
  border: 1px solid rgba(255,179,71,.25);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 0 80px rgba(0,0,0,.6);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: min(84vh, 760px);
  position: relative;
  overflow: hidden;
}
.desk::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(255,179,71,.035) 2px 3px);
  box-shadow: inset 0 0 180px rgba(0,0,0,.7);
}
.strip { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px dashed rgba(255,179,71,.3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.back { color: var(--ink-dim); text-decoration: none; }
.back:hover { color: var(--ink); }
.controls { display: flex; gap: 12px; align-items: center; text-transform: none; letter-spacing: 0; }
.controls label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.controls button { font: inherit; color: var(--ink); background: transparent; border: 1px solid rgba(255,179,71,.4); border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.paper { padding: 18px 20px; overflow-y: auto; white-space: pre-wrap; line-height: 1.55; font-size: 1rem; text-transform: uppercase; text-shadow: 0 0 6px rgba(255,179,71,.35); }
.paper .rule { color: var(--ink-dim); font-size: .78rem; text-transform: none; opacity: .85; }
.paper .safety { color: #ffd0d0; text-transform: none; }
.line { display: flex; gap: 10px; align-items: center; padding: 10px 20px 14px; border-top: 1px dashed rgba(255,179,71,.3); }
.prompt { color: var(--ink); }
.line input { flex: 1; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; outline: none; text-transform: uppercase; caret-color: var(--ink); }
.note { padding: 12px 20px 16px; font-size: .72rem; color: var(--ink-dim); line-height: 1.5; border-top: 1px solid rgba(255,179,71,.15); text-transform: none; }
.cursor::after { content: "█"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
