/* =============================
   GREEN MONOCHROME TERMINAL STYLE
   (Classic ADVENTURE look)
   ============================= */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000000; /* Black */
  font-family: "Courier New", Menlo, monospace;
  color: #1faa1f; /* Softer phosphor terminal green */
  text-shadow: 0 0 1px rgba(31, 170, 31, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main screen container */
#screen {
  width: 720px;              /* ~80-column feel */
  max-width: 95%;
  min-height: 400px;
  margin: 0;
  padding: 24px;
  background-color: #000000;
  border: 2px solid #33ff33; /* Simple monochrome border */
  box-sizing: border-box;
}

/* Title */
#title {
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main game text */
#output {
  white-space: pre-wrap;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Prompt line */
#prompt-line {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

/* The static '>' prompt */
.prompt {
  margin-right: 6px;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.4);
}

/* Text input at the prompt */
#command-input {
  background-color: #000000;
  border: none;
  color: #33ff33;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.4);
  font-family: "Courier New", Menlo, monospace;
  font-size: 14px;
  outline: none;
  flex: 1;
}

/* Hint text under the prompt */
#hint {
  color: #116611;
  font-size: 12px;
  margin-top: 4px;
}

/* =============================
   LAYOUT: CRT + HIGH SCORE SIDEBAR
   ============================= */

/* Wrapper that holds the CRT and the sidebar */
#app-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  box-sizing: border-box;
}

/* Fake CRT bezel so the existing #screen sits inside a "monitor" */
#crt-bezel {
  padding: 16px;
  border-radius: 10px;
  background: #040404;
  border: 2px solid #222222;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.8);
}

/* Inner glass area behind the #screen */
#crt-glass {
  padding: 12px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 20%, rgba(31, 170, 31, 0.1), #000000 70%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9);
}

/* High score sidebar panel */
#highscore-panel {
  width: 260px;
  max-width: 30%;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #1faa1f;
  background-color: #020402;
  color: #1faa1f;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

#highscore-title {
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#highscore-list {
  white-space: pre-wrap;
  font-family: "Courier New", Menlo, monospace;
  font-size: 12px;
  margin: 0 0 8px 0;
}

#highscore-hint {
  font-size: 10px;
  color: #0e4e0e;
}

/* Stack vertically on very narrow screens */
@media (max-width: 900px) {
  #app-shell {
    flex-direction: column;
    align-items: center;
  }

  #highscore-panel {
    width: 100%;
    max-width: 480px;
  }
}