* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #1a2744 0%, #0d1117 45%, #0a0a0a 100%);
  color: #e6edf3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

h1 {
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #f0f6fc;
}

.subtitle {
  font-size: 0.9rem;
  color: #8b949e;
  margin: 0 0 12px;
}

.note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6e7681;
  margin: 0 0 28px;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.lang-screen {
  width: 100%;
  max-width: 440px;
}

.lang-cards {
  display: grid;
  gap: 14px;
}

.lang-btn {
  display: block;
  width: 100%;
  padding: 20px 24px;
  border: 1px solid #30363d;
  border-radius: 12px;
  background: linear-gradient(180deg, #21262d 0%, #161b22 100%);
  color: #f0f6fc;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.lang-btn:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lang-btn:active {
  transform: scale(0.99);
}

.lang-btn .native {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.lang-btn .hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8b949e;
}

.quiz-stats {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.quiz-levels {
  width: 100%;
  /* max-width: 280px; */
  border-collapse: collapse;
  font-size: 0.85rem;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.quiz-levels th,
.quiz-levels td {
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid #30363d;
}

.quiz-levels tbody tr:last-child td {
  border-bottom: none;
}

.quiz-levels th {
  font-weight: 600;
  color: #8b949e;
  background: rgba(22, 27, 34, 0.65);
}

.quiz-levels th:last-child {
  text-align: right;
}

.quiz-levels td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #e6edf3;
}

.quiz-levels tbody tr:nth-child(even) {
  background: rgba(33, 38, 45, 0.35);
}

.github-row {
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
}

.github-icon-link {
  display: inline-flex;
  color: #8b949e;
  transition: color 0.15s, transform 0.1s;
}

.github-icon-link:hover {
  color: #f0f6fc;
}

.github-icon-link:active {
  transform: scale(0.97);
}

.github-icon-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
