:root {
  --bg: #000000;
  --bg-elevated: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.25);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: #2d3748;
  --border-focus: #22c55e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  background:
    radial-gradient(900px 380px at 8% -5%, rgba(34, 197, 94, 0.14), transparent 70%),
    radial-gradient(780px 320px at 90% 10%, rgba(34, 197, 94, 0.1), transparent 72%),
    linear-gradient(115deg, rgba(34, 197, 94, 0.04), transparent 35%);
}

body::after {
  top: -25%;
  left: -20%;
  width: 140%;
  height: 160%;
  background-image: repeating-linear-gradient(
    -30deg,
    rgba(148, 163, 184, 0.06) 0,
    rgba(148, 163, 184, 0.06) 1px,
    transparent 1px,
    transparent 26px
  );
  opacity: 0.25;
  transform: rotate(1deg);
}

body.modal-open {
  overflow: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  background: linear-gradient(92deg, #ffffff 0%, #dcfce7 42%, #22c55e 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 24px rgba(34, 197, 94, 0.22);
  transition: opacity var(--transition), filter var(--transition);
}

.logo:hover {
  opacity: 0.98;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.35));
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

/* Auth block */
.auth-block {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-login-open {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.btn-login-open:hover {
  background: var(--accent-hover);
}

.btn-login-open:active {
  transform: scale(0.98);
}

.auth-block .btn-login-open.hidden {
  display: none;
}

.auth-form-wrap.auth-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 260px;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.auth-form-wrap.auth-dropdown.closed {
  display: none;
}

.auth-form-wrap.auth-dropdown:not(.closed) {
  display: flex;
}

.auth-form-wrap .auth-tabs {
  order: 0;
}

.auth-form-wrap .auth-form {
  flex-direction: column;
  align-items: stretch;
}

.auth-form-wrap .auth-form input {
  width: 100%;
}

.auth-form-wrap .auth-form button {
  width: 100%;
}

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
}

.auth-tab {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.auth-tab:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}

.auth-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.auth-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.auth-form input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 130px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form input::placeholder {
  color: var(--text-subtle);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-form button {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.auth-form button:hover {
  background: var(--accent-hover);
}

.auth-form button:active {
  transform: scale(0.98);
}

.auth-form[id="form-login"] { display: flex; }
.auth-form[id="form-register"] { display: none; }

.auth-form-wrap.show-register .auth-form[id="form-login"] { display: none; }
.auth-form-wrap.show-register .auth-form[id="form-register"] { display: flex; }

.user-panel {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.user-panel.hidden {
  display: none;
}

.auth-form-wrap.hidden {
  display: none !important;
}

.user-status {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.user-nickname {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-logout {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-logout:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}

/* Main */
.main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Legal pages (Terms, Privacy) */
.page-legal h1 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-legal .legal-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.page-legal h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-legal p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.page-legal a {
  color: var(--accent);
  text-decoration: none;
}

.page-legal a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(34, 197, 94, 0.06) 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

.section {
  margin-bottom: 3rem;
  position: relative;
}

.section h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.info-section-head {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 0.85rem;
}

.info-section-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.info-section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 4px;
  height: calc(100% - 0.5rem);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 197, 94, 0.15));
}

.quiz-sports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quiz-sport-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #111111 0%, #151515 100%);
  min-height: 150px;
  padding: 1rem 4.6rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color var(--transition), box-shadow var(--transition);
  animation: floatCard 4s ease-in-out infinite;
}

.quiz-sport-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 55%);
  opacity: 0.6;
}

.quiz-sport-card:nth-child(2),
.quiz-sport-card:nth-child(5) {
  animation-delay: 0.25s;
}

.quiz-sport-card:nth-child(3),
.quiz-sport-card:nth-child(6) {
  animation-delay: 0.5s;
}

.quiz-sport-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sport-icon,
.sport-name,
.sport-score {
  position: relative;
  z-index: 1;
}

.sport-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4.2rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.sport-name {
  font-family: var(--font-title);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  text-align: left;
}

.sport-score {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(45, 55, 72, 0.8);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sport-score.has-score {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(22, 163, 74, 0.18);
}

body.logged-in .sport-score {
  opacity: 1;
  transform: translateY(0);
}

.user-overview {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #101010 0%, #151515 100%);
  padding: 1.15rem;
  overflow: hidden;
}

.user-overview::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 68%);
  pointer-events: none;
}

.overview-info {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.overview-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #101214;
  padding: 0.55rem 0.7rem;
}

.overview-stat-label {
  display: block;
  color: var(--text-subtle);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.overview-stat-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.overview-extra {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.overview-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #111214;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.overview-item strong {
  color: var(--text);
  font-weight: 600;
}

.overview-item span {
  color: var(--text-muted);
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quiz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.quiz-zone {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #101010 0%, #141414 100%);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.quiz-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #121212;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}

.quiz-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.quiz-progress {
  color: var(--text-muted);
  margin-top: -0.35rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.quiz-progress-track {
  height: 8px;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.quiz-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #86efac 100%);
  transition: width 0.25s ease;
}

.quiz-question-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
}

.quiz-option {
  background: #111214;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  padding: 0.82rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.quiz-option:hover:not([disabled]) {
  border-color: var(--accent);
  transform: translateX(2px);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.quiz-option.correct {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.2);
}

.quiz-option.wrong {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.18);
}

.quiz-restart {
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.quiz-restart:hover {
  background: var(--accent-hover);
}

.quiz-restart:active {
  transform: scale(0.98);
}

.quiz-result {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}

.quiz-result h3 {
  font-family: var(--font-title);
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.quiz-result p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.1), transparent 35%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.42), rgba(34, 197, 94, 0.08));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.card-img {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 0.875rem;
  letter-spacing: 0.02em;
  font-family: var(--font-title);
}

.card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step-card .card-img,
.knowledge-card .card-img {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.post:hover {
  background: var(--bg-card-hover);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--shadow);
}

.post::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 55%);
  opacity: 0.65;
}

.post h3 {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.post p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.article-post .article-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-subtle);
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-tag {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
}

.info-articles .posts {
  position: relative;
}

.info-articles .posts::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto -12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.45), transparent);
}

.performance-lab {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  background:
    radial-gradient(480px 180px at 85% -10%, rgba(34, 197, 94, 0.15), transparent 75%),
    linear-gradient(145deg, #0f1012 0%, #121418 100%);
  position: relative;
  overflow: hidden;
}

.performance-lab::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 0 0 20px rgba(34, 197, 94, 0.04);
  pointer-events: none;
}

.sports-insight {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  background:
    linear-gradient(155deg, #0f1216 0%, #12151b 100%);
  position: relative;
  overflow: hidden;
}

.sports-insight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(460px 140px at 100% 0, rgba(34, 197, 94, 0.13), transparent 75%),
    radial-gradient(380px 140px at 0 100%, rgba(34, 197, 94, 0.08), transparent 80%);
  pointer-events: none;
}

.sports-insight-head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
}

.sports-insight-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.sports-insight-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.insight-board,
.insight-facts {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 13, 16, 0.82);
  padding: 0.9rem;
}

.insight-board h3,
.insight-facts h3 {
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}

.insight-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.insight-list li {
  border: 1px solid rgba(45, 55, 72, 0.85);
  border-radius: 10px;
  background: rgba(15, 18, 22, 0.85);
  padding: 0.55rem 0.65rem;
}

.insight-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.insight-list p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.facts-strip {
  display: grid;
  gap: 0.55rem;
}

.fact-pill {
  border: 1px solid rgba(45, 55, 72, 0.85);
  border-radius: 999px;
  background: rgba(14, 17, 20, 0.9);
  padding: 0.45rem 0.7rem;
  display: grid;
  gap: 0.12rem;
}

.fact-pill strong {
  color: var(--text);
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.fact-pill span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.facts-note {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.performance-head {
  margin-bottom: 1rem;
}

.performance-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.performance-track,
.performance-metrics {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 12, 14, 0.78);
  padding: 0.95rem;
}

.performance-track h3,
.performance-metrics h3 {
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.focus-timeline {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.focus-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.65rem;
}

.focus-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 0.08));
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
  margin-top: 0.15rem;
}

.focus-timeline strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text);
}

.focus-timeline p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.metric-rings {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.metric-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0f1114;
}

.metric-ring span {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text);
}

.metric-ring small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.metric-ring-a { background: conic-gradient(var(--accent) 0 84%, #12171d 84% 100%); }
.metric-ring-b { background: conic-gradient(#84cc16 0 76%, #12171d 76% 100%); }
.metric-ring-c { background: conic-gradient(#10b981 0 91%, #12171d 91% 100%); }
.metric-ring-a span, .metric-ring-b span, .metric-ring-c span,
.metric-ring-a small, .metric-ring-b small, .metric-ring-c small {
  background: #0f1114;
  border-radius: 999px;
  padding: 0 0.25rem;
}

.metric-note {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contacts p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-about {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #0f0f0f 0%, #141414 100%);
  padding: 1.25rem;
}

.site-about p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.site-about p:last-child {
  margin-bottom: 0;
}

.site-about a {
  color: var(--accent);
  text-decoration: none;
}

.site-about a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.footer-company {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-company-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-email {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .header {
    width: 100%;
    padding: 0.7rem 0.85rem;
  }

  .header-inner {
    max-width: none;
    width: 100%;
    gap: 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo auth"
      "nav nav";
    align-items: center;
  }

  .logo {
    grid-area: logo;
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
    gap: 1.1rem;
    display: none;
  }

  .auth-block {
    grid-area: auth;
    width: auto;
    justify-self: end;
  }

  .btn-login-open {
    width: auto;
    text-align: center;
    padding: 0.45rem 1rem;
  }

  .auth-form-wrap.auth-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    width: min(280px, 82vw);
    min-width: 0;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tab {
    flex: 1;
    text-align: center;
  }

  .user-panel {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .btn-logout {
    margin-left: auto;
  }

  .quiz-sports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-modal {
    padding: 0.5rem;
  }

  .quiz-zone {
    max-height: 94vh;
    border-radius: 12px;
    padding: 1rem;
  }

  .quiz-question {
    font-size: 1.05rem;
  }

  .quiz-option {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .quiz-sport-card {
    padding-right: 1rem;
    min-height: 170px;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .sport-icon {
    position: static;
    transform: none;
    margin-top: 0.2rem;
    font-size: 2.6rem;
  }

  .auth-form-wrap {
    align-items: stretch;
  }
  .auth-form {
    flex-direction: column;
  }
  .auth-form input {
    width: 100%;
  }
  .hero {
    padding: 3rem 1.25rem;
  }
  .hero h1 {
    font-size: 2rem;
  }

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

  .article-post .article-meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
  }

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

  .sports-insight-layout {
    grid-template-columns: 1fr;
  }

  .metric-rings {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .performance-metrics h3,
  .metric-note {
    text-align: center;
  }
}


@media (max-width: 900px) and (min-width: 641px) {
  .quiz-sports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
