:root {
  --bg: #0f172a;
  --text: #eff4ff;
  --caret: #a5adff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% -10%, #1b2852 0%, var(--bg) 52%);
}

body {
  min-height: 100vh;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.message-shell {
  min-height: calc(100vh - clamp(2rem, 6vw, 5rem));
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-text {
  width: 100%;
  color: var(--text);
  text-align: center;
  font-family: "Cascadia Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(2rem, 7vw, 6.2rem);
  line-height: 1.12;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-line {
  margin: 0;
}

.message-figure {
  width: 100%;
  height: calc(100vh - clamp(2rem, 6vw, 5rem));
  margin: 0;
  display: grid;
  place-items: center;
  gap: 0.9rem;
}

.message-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.7rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.message-caption {
  margin: 0;
  color: #d9e3ff;
  text-align: center;
  font-family: "Cascadia Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.typing-caret::after {
  content: "▋";
  margin-left: 2px;
  color: var(--caret);
  animation: caret 0.8s steps(1, end) infinite;
}

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