/* Общие стили */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: black;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  color: #0F0;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.info-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 80vw;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,0.2);
  border: 2px solid #0F0;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  overflow: hidden;
}

.info-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.info-container > * { position: relative; z-index: 1; }

.header {
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #0F0;
  padding-bottom: 10px;
}

.title {
  font-size: 1.5em;
  color: #0F0;
  text-shadow: 0 0 10px #0F0;
  margin: 0;
}

.subtitle {
  font-size: 0.9em;
  color: #0F0;
  opacity: 0.8;
  margin: 5px 0 0 0;
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 0;
  font-size: 0.85em;
  line-height: 1.3;
}

.info-line {
  margin: 2px 0;
  flex-shrink: 0;
}

.typing-text {
  border-right: 2px solid #0F0;
  white-space: pre-wrap;
  overflow: hidden;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,50% { border-color: #0F0; }
  51%,100% { border-color: transparent; }
}

.scroll-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #0F0;
  opacity: 0.5;
  font-size: 0.8em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.timestamp {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.75em;
  opacity: 0.7;
}

.connection-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.75em;
}

.online { color: #0F0; }
.offline { color: #FF0000; }

@media (max-width: 768px) {
  .info-container {
    width: 90vw;
    height: 80vh;
    aspect-ratio: auto;
    padding: 20px;
  }
  .title { font-size: 1.5em; }
  .subtitle { font-size: 0.9em; }
  .info-content { font-size: 0.85em; gap: 4px; }
  .timestamp, .connection-status { font-size: 0.75em; }
}
