/* End of a lesson, duels and help. */

.end,
.duel-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 48px 20px 32px;
  padding-top: max(48px, env(safe-area-inset-top));
}

.end .page-title,
.duel-screen .page-title {
  font-size: 40px;
}

.end-spark,
.duel-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.end-score {
  font-size: 56px;
  line-height: 1;
  margin: 2px 0 6px;
}

.end-streak {
  align-self: center;
  color: var(--accent);
  margin: 0 0 12px;
}

.duel-screen > .chip {
  align-self: center;
  margin: 0 0 6px;
}

.note {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  font-weight: 600;
  margin: 12px 0 0;
}

.avatar-big {
  width: 76px;
  height: 76px;
  font-size: 30px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}

/* Score */

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px;
}

.score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 96px;
}

.score-side .avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.score-side strong {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.score-sep {
  font-size: 34px;
  color: var(--faint);
}

/* Category pick */

.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 4px;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  margin: 0;
  padding: 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.category-name {
  font-size: 22px;
  line-height: 1.15;
}

.category:active {
  transform: scale(0.98);
}

/* Compare */

.compare-card {
  padding: 8px 14px;
  text-align: left;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 4px;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare td {
  border-top: 1px solid var(--line);
  padding: 10px 4px;
  vertical-align: top;
}

.compare td:not(:first-child) {
  text-align: center;
  width: 60px;
}

.compare-q {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.mark.is-good {
  background: var(--good-soft);
  color: var(--good);
}

.mark.is-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.share .btn {
  margin-top: 10px;
}

/* Duel tab */

.new-duel .icon-dot {
  margin-bottom: 14px;
}

.name-form label {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 10px;
}

.row {
  display: flex;
  gap: 10px;
}

.row input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
}

.row .btn {
  width: auto;
  margin: 0;
}

.duel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.duel-card {
  padding: 18px;
}

.duel-card.is-turn {
  border-color: rgba(242, 122, 42, 0.35);
}

.duel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duel-who {
  flex: 1;
  min-width: 0;
}

.duel-who p {
  margin: 0;
}

.duel-name {
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}

.duel-score {
  font-size: 26px;
}

.duel-status {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.empty {
  text-align: center;
}

/* Help */

.numbers {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.number-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 14px 16px;
  text-decoration: none;
}

.number-text {
  display: flex;
  flex-direction: column;
}

.number-text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
}

.number-text span {
  color: var(--muted);
  font-size: 14px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 4px 0 0;
  font-size: 14px;
}

.about-line {
  margin: 12px auto 4px;
  max-width: 320px;
  font-size: 15px;
}
