﻿:root {
  --bg: #0b1117;
  --panel: #131b24;
  --panel-2: #17212d;
  --text: #e6edf3;
  --muted: #8ea3b8;
  --line: #223042;
  --baskov: #0846f3;
  --bilan: #f93303;
  --accent: #4db5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -20%, #1f2e40 0%, transparent 35%),
    radial-gradient(circle at 90% -5%, #15384a 0%, transparent 30%),
    var(--bg);
}

.container {
  width: min(1080px, 94vw);
  margin: 24px auto 40px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.hero img {
  width: 100%;
  display: block;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.battle-scale-wrap {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.day-results-table {
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 6px;
}

.day-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.day-title {
  color: #dce8f3;
  font-weight: 600;
}

.day-sep {
  color: var(--muted);
}

.update-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  opacity: 0.9;
}

.scale-section {
  margin-bottom: 8px;
}

.scale-section:last-of-type {
  margin-bottom: 0;
}

.scale-caption {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 4px 4px;
}

.battle-scale {
  position: relative;
  height: 26px;
  width: 100%;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.scale-baskov {
  height: 100%;
  background: linear-gradient(90deg, #0d5bff 0%, #0846f3 100%);
  transition: width 0.3s ease;
}

.scale-bilan {
  height: 100%;
  background: linear-gradient(90deg, #ff613b 0%, #f93303 100%);
  transition: width 0.3s ease;
}

.scale-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
}

.scale-overlay-center {
  justify-content: center;
  text-align: center;
}

.scale-meta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

#scale-24h-label,
#scale-today-label {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.scoreboard {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.profile-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.card h2 {
  margin: 0;
}

.username {
  margin: 4px 0 8px;
}

.card-baskov h2,
.card-baskov .username a {
  color: var(--baskov);
}

.card-bilan h2,
.card-bilan .username a {
  color: var(--bilan);
}

.username a {
  text-decoration: none;
}

.username a:hover {
  text-decoration: underline;
}

.bio {
  margin: 2px 0;
  color: var(--text);
  opacity: 0.92;
  font-size: 0.93rem;
}

.window-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.window-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.window-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.window-item strong {
  display: block;
  margin-top: 3px;
  font-size: 1.06rem;
}

.card-baskov .window-item strong {
  color: var(--baskov);
}

.card-bilan .window-item strong {
  color: var(--bilan);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.latest-list {
  display: grid;
  gap: 8px;
}

.more-btn {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.more-btn:hover {
  border-color: #39506a;
}

.reply-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.reply-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.reply-text {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reply-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.reply-link:hover {
  text-decoration: underline;
}

.chart-wrap {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.chart-wrap h3 {
  margin: 0 0 10px;
}

.baskov-score {
  color: var(--baskov);
  font-weight: 700;
}

.bilan-score {
  color: var(--bilan);
  font-weight: 700;
}

.winner.baskov {
  color: var(--baskov);
}

.winner.bilan {
  color: var(--bilan);
}

.winner.draw {
  color: #d6e2ef;
}

.footer {
  margin-top: 16px;
  text-align: center;
}

.footer a {
  color: #c6d4e3;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .window-grid {
    grid-template-columns: 1fr;
  }

  .scale-overlay {
    font-size: 0.86rem;
    padding: 0 8px;
  }
}

.experiment-note {
  margin-top: 14px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.experiment-note p {
  margin: 0;
  color: #d3deea;
  font-size: 0.86rem;
  line-height: 1.45;
}

.experiment-note a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.experiment-note a:hover {
  text-decoration: underline;
}

.experiment-note {
  margin: 14px auto 0;
  max-width: 940px;
  background: rgba(19, 27, 36, 0.72);
  border: 1px solid rgba(77, 181, 255, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.experiment-note p {
  margin: 0;
  color: #d9e4ef;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .experiment-note {
    max-width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .experiment-note p {
    font-size: 0.8rem;
  }
}
