@font-face {
  font-family: 'SignalGroteskVF';
  src: url('SignalGroteskVF.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
}

body {
  margin: 0;
  height: 100vh;
  background: #111;
  color: #d8d8d8;
  font-family: Menlo, Monaco, Consolas, monospace;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding: 1vw;
  cursor: default;
}

.top {
  flex: 0 0 81vh;
  display: flex;
  min-height: 0;
  gap: 1vw;
}

.main {
  background: #0f0f0f;
  color: white;
  flex: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #444;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.site-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #2b2b2b;
  color: #d8d8d8;
  font-family: 'Menlo', monospace;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: none;
  padding: 8px 12px;
  border-bottom: 1px solid #444;
}

.word {
  font-family: 'SignalGroteskVF';
  font-size: clamp(2rem, 15vw, 20rem);
  transition: font-variation-settings 2s ease;
  color: white;
  text-transform: lowercase;
  white-space: nowrap;
  padding: 20px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 0.7;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #444;
  box-sizing: border-box;
  order: -1;
}

.panel-title {
  background: #2b2b2b;
  color: #d8d8d8;
  font-family: 'Menlo', monospace;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: none;
  padding: 8px 12px;
  border-bottom: 1px solid #444;
}

.search-bar {
  background: #0f0f0f;
  color: #000;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #444;
  position: relative;
}

.search-bar input {
  background: #111;
  border: 1px solid #555;
  color: #d8d8d8;
  padding: 6px 12px;
  font-family: 'Menlo', monospace;
  caret-color: #d6d6d6;
  font-size: 14px;
  letter-spacing: 0;
  outline: none;
  flex: 1;
}

.search-bar input::placeholder {
  color: #777;
}

.search-bar button {
  background: #222;
  border: 1px solid #555;
  color: #d8d8d8;
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'Menlo', monospace;
  font-size: 14px;
}

.search-bar button:hover {
  background: #333;
  color: #5555DD;
}

.search-bar::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 18px;
    width: 2px;
    height: 18px;
    background: #d6d6d6;
    animation: blink 1s steps(1) infinite;
    pointer-events: none;
}

.search-bar:focus-within::after {
    display: none;
}

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

.stats {
  background: #0f0f0f;
  color: #8ae234;
  font-family: 'Menlo', monospace;
  font-size: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #444;
  line-height: 1.6;
}

.sidebar {
  font-family: 'Menlo', monospace;
  font-weight: 100;
  font-size: clamp(10px, 1vw, 16px);
  flex: 1;
  background: #0f0f0f;
  color: #d8d8d8;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sidebar strong {
  font-weight: bold;
  color: #7fbfff;
}

.sidebar div {
  margin-bottom: 10px;
  padding: 5px;
  border-bottom: 1px solid #222;
}

.time {
  font-size: 12px;
  color: #666;
}

.bottom {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.caption-wrapper {
  border: 1px solid #444;
  box-sizing: border-box;
}

.caption {
  background: #0f0f0f;
  font-family: 'Menlo', monospace;
  font-size: clamp(12px, 1.2vw, 20px);
  font-weight: 100;
  line-height: 1.5;
  padding: 16px 20px;
  box-sizing: border-box;
  color: #bdbdbd;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.caption p {
  margin: 0;
  max-width: 100%;
}

.footer {
  font-family: 'Menlo', monospace;
  font-size: 11px;
  text-align: center;
  padding: 8px;
  background: #2b2b2b;
  color: #888;
  border: 1px solid #444;
  box-sizing: border-box;
}

.trails {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'SignalGroteskVF';
    font-size: clamp(2rem, 15vw, 20rem);
    line-height: 0.7;
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    opacity: 0;
    animation: fadeTrail 12s ease-in-out forwards;
}

@keyframes fadeTrail {

    0%{
        opacity:0;
        transform:translate(-50%,-50%) scale(.995);
    }

    4%{
        opacity:.20;
        transform:translate(-50%,-50%) scale(1);
    }

    100%{
        opacity:0;
        transform:translate(-50%,-50%) scale(1.01);
    }
}


@media (max-width: 768px) {

  body {
    height: auto;
    min-height: 100vh;
  }

  .top {
    flex-direction: column;
    flex: none;
    height: auto;
    gap: 1vw;
  }

  .right-panel {
    order: 0;
    height: 65vh;
    min-height: 400px;
    overflow: hidden;
  }

  .sidebar {
    min-height: 0;
    overflow-y: auto;
  }

  .main {
    order: 1;
    height: 60vh;
    min-height: 400px;
    flex: none;
  }
  
  .stats {

    padding: 10px 12px;

    font-size: 11px;

    line-height: 1.45;

  }

  .sidebar {

    padding: 12px;

    font-size: 12px;

  }

  .bottom {
    flex: none;
  }

}
