:root{
  --letters: 10; /* configurable number of placeholders */
}
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  background:#000;
  color:#fff;
  font-family: Helvetica, Arial, sans-serif;
  min-height:100vh;
  overflow: hidden;
}
#background_map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#background_map .ascii-map {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 12px;
  color: #1a1a1a;
  background: transparent;
  padding: 0;
  margin: 0;
  white-space: pre;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#app{
  width:100%;
  max-width:1200px;
  padding:2rem;
  text-align:center;
  margin:0 auto;
  padding-top:30vh;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}
#placeholders{
  display:flex;
  gap:1rem;
  justify-content:space-between;
  align-items:center;
  margin:0 auto 2rem auto;
  flex-shrink:0;
}
.placeholder{
  flex:1 1 0;
  color:#fff;
  font-weight:700;
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  height: min(120px, 12vw);
  user-select:none;
}
.letter {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
  font-size: clamp(24px, 10vw, 120px);
  line-height:1;
  position: relative;
  transition: filter 3s;
}
.letter.chaos {
  filter: blur(2px);
  transition: filter 0.1s;
}
.letter.fixed-underscore {
  position: relative;
}
.letter.fixed-underscore::after {
  content: '_';
  
}
.letter.placeholder-underscore {
  position: relative;
}
.letter.placeholder-underscore::after {
  content: '_';

}
.letter.fixed-letter {
  color: #f00;
}
#definition{
  color:#666;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
  font-style: normal;
  max-width:90%;
  margin:0 auto;
  transition: opacity 0.3s;
  opacity: 1;
  font-size: 1.25rem;
  line-height: 1.6;
  min-height: 2em;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
#definition.fade {
  opacity: 0;
}
#context{
  color:#0b0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 90%;
  margin: 1rem auto 0 auto;
  transition: opacity 0.3s;
  opacity: 1;
  font-style: italic;
  letter-spacing: 0.02em;
  animation: blink 1.5s ease-in-out infinite;
  min-height: 1.5em;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
#context::before {
  content: '"';
}
#context::after {
  content: '"';
}

/* Hide quotes for special states like "..." and "[LOADING]" */
#context.no-quotes::before,
#context.no-quotes::after {
  content: none;
}
#context.fade {
  opacity: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (max-width:600px){
  #app{
    padding-top:20vh;
  }
  #placeholders{gap:0.5rem}
  #definition{
    font-size: 1rem;
    min-height: 3em;
  }
  #context{
    font-size: 0.8rem;
    min-height: 2em;
  }
}
.text-decoration {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
