*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Courier New', monospace;
  background: radial-gradient(circle at 20% 30%, #1f2428, #0d0f11 70%);
  color: #d1d5db;
  min-height: 100vh;
  padding: 40px 5vw;
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 18px 30px;
  background: rgba(15, 15, 15, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 8px;
}

.container::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #444, transparent);
}

/* ── Заголовок ── */
h1 {
  font-size: 1.35rem;
  letter-spacing: 7px;
  font-weight: 400;
  color: #9ca3af;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255,255,255,0.08);
}

/* ── Текст ── */
p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #d1d5db;
  white-space: pre-line;
}

/* ── fragments — подчёркнутая ссылка ── */
.quotes-link {
  display: inline-block;
  margin-top: 22px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(229, 231, 235, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.quotes-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}

/* ── Соцсети ── */
.social-links {
  margin-top: 26px;
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(156,163,175,0.25);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.social-links a:hover {
  color: #e5e7eb;
  border-color: rgba(229,231,235,0.6);
}

/* ── Назад ── */
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.back-link:hover { color: #d1d5db; }

/* ── Звёзды ── */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #aaa;
  border-radius: 50%;
  animation: twinkle 1.5s infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.12; transform: scale(0.5); }
  50%  { opacity: 0.85; transform: scale(1.2); }
  100% { opacity: 0.12; transform: scale(0.5); }
}

/* ── Quotes page ── */
#quotes-container {
  display: flex;
  flex-direction: column;
}

.quote {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.4s ease both;
}
.quote:last-child { border-bottom: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #d1d5db;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.quote-time {
  font-size: 0.72rem;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.status-msg {
  font-size: 0.82rem;
  color: #6b7280;
  font-style: italic;
  padding: 12px 0;
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  body { padding: 24px 16px; }
  .container {
    padding: 14px 18px;
    max-width: 100%;
  }
  .container::before { display: none; }
  h1 { font-size: 1.1rem; letter-spacing: 5px; }
  p, .quote-text { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 0.95rem; letter-spacing: 4px; }
}