:root{
  --brand: #084999;      /* Requested brand blue */
  --brand-2: #0a3b73;    /* Darker companion */
  --bg: #0a0f14;         /* Deep slate background */
  --fg: #f1f5fb;         /* Light foreground */
  --muted: #b8c7df;      /* Muted text */
  --accent: var(--brand);/* Accent uses brand */
  --dim: #91a6c5;        /* Dim text */
  --shadow: rgba(0,0,0,0.5);
  --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background:
    radial-gradient(1200px 800px at 50% 10%, #0d1724 0%, #0b1420 50%, var(--bg) 100%);
  color: var(--fg);
  margin: 0;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.game { max-width: 900px; margin: 0 auto; padding: 1rem; }

.banner { text-align: center; margin-bottom: 0.5rem; text-shadow: 0 2px 8px var(--shadow); }
.banner h1 { font-weight: 800; margin: 0.2rem 0 0.1rem; letter-spacing: 0.02em; color: var(--accent); }
.subtitle { color: var(--muted); margin: 0; }

.output {
  background: #0c121a;
  border: 1px solid #142236;
  border-radius: 12px;
  padding: 1rem;
  height: 58vh;
  overflow: auto;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.35), 0 8px 40px rgba(0,0,0,0.3);
}

.output p { margin: 0.4rem 0; line-height: 1.45; }

.output .room { color: var(--accent); font-weight: 800; margin-top: 0.7rem; }
.output .desc { color: var(--fg); }
.output .meta { color: var(--muted); }
.output .warn { color: #ffd27d; }
.output .bad  { color: #ff6b6b; }
.output .good { color: #84f59a; }
.output .cmd  { color: var(--dim); }
.output .hr   { border-top: 1px dashed #1b2b45; margin: 0.6rem 0; }

.input-line {
  display: flex; gap: 0.5rem; align-items: center;
  margin-top: 0.6rem;
  background: #0c121a;
  border: 1px solid #142236;
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

.prompt { color: var(--dim); }

.input-line input[type="text"] {
  flex: 1; background: transparent; border: none; color: var(--fg); font-size: 1rem; outline: none;
}

.input-line .buttons { display: flex; gap: 0.25rem; }
.input-line button {
  background: #0e1a2b;
  border: 1px solid #1b2f4d;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.input-line button:hover { border-color: var(--brand); color: var(--fg); }

.tips { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

code, kbd {
  background: #0f1c30;
  border: 1px solid #1b2f4d;
  padding: 0.08rem 0.25rem;
  border-radius: 4px;
  color: var(--accent);
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
