:root {
  --bg-primary: hsl(220, 10%, 1%);
  --bg-secondary: hsl(220, 10%, 12%);
  --accent: hsl(220, 20%, 30%);
  --text-primary: hsl(220, 15%, 90%);
  --text-secondary: hsl(220, 12%, 70%);
  --glass-bg: hsla(220, 10%, 10%, 0.85);
  --glass-border: hsla(220, 10%, 20%, 0.1);
  --input-bg: hsla(220, 2%, 2%, 0.2);

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: "Courier Prime Sans", "Courier Prime", "Courier New", Courier, monospace;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
  }

  .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(95%, 1100px);
    height: min(96vh, 1100px);
    z-index: 2;
  }

  #seedNotice {
    position: fixed;
    top: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    padding: 1.2rem 2.2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  #seedNotice.visible {
    opacity: 1;
  }

  #seedInput,
  #typewriterInput {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: "Courier Prime Sans", "Courier Prime", "Courier New", Courier, monospace;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
  }

  #typewriterInput {
    flex: 1;
    resize: none;
  }

  #seedInput:focus,
  #typewriterInput:focus {
    border-color: var(--accent);
  }

  #seedInput::placeholder,
  #typewriterInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
  }

  .icon-bar {
    display: inline-flex;
    justify-content: start;
    margin-top: 0rem;
  }

  #toggleHeaderFooterIcon,
  #printIcon {
    width: 24px;
    cursor: pointer;
  }

  #starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
  }

  .subtleLabel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.4;
    display: block;
    margin-bottom: -0.5rem;
    text-align: left;
  }

  #seedInput {
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  #seedInput:focus {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
  }

  #seedInput:before {
    content: "Seed:";
    position: absolute;
    left: 0.5rem;
    top: -1.2rem;
    color: var(--accent);
    font-size: 0.9rem;
    opacity: 0.7;
  }
}
