/* Calendrier de l'Avent — rendu terminal : une seule taille, aucun cadre. */
:root {
  --noir: #0b0910;
  --rose: #ff2e9a;
  --rose-vif: #ff62b6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--noir);
}

body {
  color: var(--rose);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 16px;
  line-height: 1.5;
  padding: 40px 5vw 80px;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 120ch;
}

#screen {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.line {
  display: inline;
}

.line-img {
  display: block;
  margin: 12px 0;
}

.lego-page {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
}

.cmd {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.cmd:hover,
.cmd:focus-visible {
  color: var(--rose-vif);
}

.cmd:focus-visible {
  outline: none;
  text-decoration: underline;
}

#prompt-form {
  display: flex;
  align-items: center;
  margin-top: 24px;
  font: inherit;
}

.prompt-user {
  color: var(--rose);
  white-space: nowrap;
}

#command {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
  caret-color: transparent;
  color: var(--rose);
  font: inherit;
  margin-left: 1ch;
  padding: 0;
  max-width: calc(100vw - 16ch);
}

.cursor {
  animation: blink 1s steps(1, end) infinite;
}

body.typing .cursor {
  animation: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}
