.nf-quiz {
  background: #fff;
  color: #263238;
  overflow: hidden;
  position: relative;
}
.nf-quiz__intro, .nf-quiz__play, .nf-quiz__results {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.nf-quiz__intro.is-hidden, .nf-quiz__play.is-hidden, .nf-quiz__results.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .nf-quiz__intro, .nf-quiz__play, .nf-quiz__results {
    transition: none;
  }
}
.nf-quiz button,
.nf-quiz .btn {
  font-family: inherit;
}
.nf-quiz .btn-primary, .nf-quiz__start {
  background-color: #b69e6c;
  border: 1px solid #b69e6c;
  color: #333;
  padding: 0.55rem 1.4rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
  margin: 0 1rem 1rem 1rem;
}
.nf-quiz .btn-primary:hover, .nf-quiz .btn-primary:focus, .nf-quiz__start:hover, .nf-quiz__start:focus {
  background-color: #493c31;
  border-color: #493c31;
  color: #eee;
}
.nf-quiz__intro-cover img, .nf-quiz__results-cover img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.nf-quiz__results-title {
  font-weight: 700;
  margin: 0 0 1rem;
  color: #263238;
  text-align: center;
}
.nf-quiz__title {
  padding: 0 1rem 0.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #263238;
}
.nf-quiz__desc {
  color: #909090;
  margin: 0 0 0.5rem;
}
.nf-quiz__meta {
  padding: 0 1rem 0.5rem;
  color: #909090;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.nf-quiz__login-hint {
  padding: 0 1rem 0.5rem;
  font-size: 0.9rem;
  color: #909090;
  margin-bottom: 0.75rem;
}
.nf-quiz__login-hint a {
  color: #b69e6c;
  text-decoration: underline;
}
.nf-quiz__login-hint a:hover {
  color: #493c31;
}
.nf-quiz__play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}
.nf-quiz__play-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #263238;
  padding: 1rem 1rem;
}
.nf-quiz__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #b69e6c;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  margin-right: 1rem;
}
.nf-quiz__counter {
  color: #909090;
  margin-left: 0.25rem;
  font-size: 0.85rem;
}
.nf-quiz__progress {
  display: flex;
  gap: 4px;
  margin: 0.5rem 0 1.25rem;
}
.nf-quiz__progress-seg {
  flex: 1;
  height: 3px;
  background: #f3f3f3;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.nf-quiz__progress-seg.is-filled {
  background: #b69e6c;
}
.nf-quiz__question {
  border: 0;
  padding: 0;
  margin: 0 0 0.5rem;
}
.nf-quiz__question-cover img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
}
.nf-quiz__question-text {
  margin-left: 1rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #263238;
  font-weight: 600;
}
.nf-quiz__answers {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
@media (max-width: 600px) {
  .nf-quiz__answers {
    grid-template-columns: 1fr;
  }
}
.nf-quiz__answer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #e5dfd4;
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  margin: 0;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nf-quiz__answer:hover {
  border-color: #b69e6c;
  background: #f3f3f3;
}
.nf-quiz__answer input {
  accent-color: #b69e6c;
  margin: 0;
}
.nf-quiz__answer.is-selected {
  border-color: #b69e6c;
  background: rgba(182, 158, 108, 0.08);
}
.nf-quiz__score-card {
  background: #f3f3f3;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.nf-quiz__score-ring {
  position: relative;
  display: inline-block;
  color: #b69e6c;
}
.nf-quiz__score-ring svg {
  display: block;
}
.nf-quiz__score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nf-quiz__score-text .nf-quiz__score-value {
  font-size: 2rem;
  color: #493c31;
  font-weight: 700;
  line-height: 1;
}
.nf-quiz__score-text .nf-quiz__score-total {
  color: #909090;
  font-size: 0.9rem;
}
.nf-quiz__score-tier {
  margin: 0.75rem 0 0.25rem;
  font-weight: 700;
  color: #263238;
}
.nf-quiz__score-duration {
  color: #909090;
  margin: 0;
  font-size: 0.9rem;
}
.nf-quiz__cta {
  border: 1px solid #b69e6c;
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  background: #fff;
}
.nf-quiz__cta p {
  margin: 0 0 0.75rem;
  color: #263238;
}
.nf-quiz__overview {
  border: 1px solid #e5dfd4;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.nf-quiz__overview summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  color: #263238;
  font-weight: 600;
}
.nf-quiz__overview summary::-webkit-details-marker {
  display: none;
}
.nf-quiz__overview-hide {
  display: none;
}
.nf-quiz__overview[open] .nf-quiz__overview-show {
  display: none;
}
.nf-quiz__overview[open] .nf-quiz__overview-hide {
  display: inline;
}
.nf-quiz__overview-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.nf-quiz__overview-item {
  border: 1px solid #e5dfd4;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
}
.nf-quiz__overview-item.is-correct {
  background: #e9f7e9;
}
.nf-quiz__overview-item.is-wrong {
  background: #fdf3f3;
}
.nf-quiz__overview-q {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #263238;
}
.nf-quiz__overview-a {
  color: #2e7d32;
}
.is-wrong .nf-quiz__overview-a {
  color: #e13a36;
}
.nf-quiz__overview-correct {
  color: #2e7d32;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.nf-quiz__overview-explanation {
  color: #909090;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.nf-quiz__share {
  padding: 0 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nf-quiz__share-label {
  color: #909090;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}
.nf-quiz__share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5dfd4;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #263238;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nf-quiz__share-btn:hover {
  border-color: #b69e6c;
  color: #493c31;
}

.nf-quiz-leaderboard {
  background: #1a1a1a;
  color: #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.nf-quiz-leaderboard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.nf-quiz-leaderboard__cover {
  width: 48px;
  height: 48px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}
.nf-quiz-leaderboard__title {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.nf-quiz-leaderboard__subtitle {
  font-size: 13px;
  color: #888;
}
.nf-quiz-leaderboard__tabs {
  display: flex;
  background: #2a2a2a;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 16px;
}
.nf-quiz-leaderboard__tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #aaa;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.nf-quiz-leaderboard__tab.is-active {
  background: #b69e6c;
  color: #fff;
}
.nf-quiz-leaderboard__panel {
  display: none;
}
.nf-quiz-leaderboard__panel.is-active {
  display: block;
}
.nf-quiz-leaderboard__table {
  width: 100%;
  border-collapse: collapse;
}
.nf-quiz-leaderboard__table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid #333;
}
.nf-quiz-leaderboard__table td {
  padding: 12px;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: middle;
}
.nf-quiz-leaderboard__table tr.is-self {
  background: rgba(182, 158, 108, 0.08);
  border-left: 2px solid #b69e6c;
}
.nf-quiz-leaderboard__table tr.is-self-row td {
  border-top: 1px solid #b69e6c;
}
.nf-quiz-leaderboard__th-rank {
  width: 60px;
}
.nf-quiz-leaderboard__th-score, .nf-quiz-leaderboard__th-time {
  text-align: right;
}
.nf-quiz-leaderboard__score, .nf-quiz-leaderboard__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nf-quiz-leaderboard__time {
  color: #888;
  font-family: monospace;
}
.nf-quiz-leaderboard__rank-num {
  display: inline-block;
  font-weight: 600;
  color: #aaa;
  text-align: center;
  min-width: 24px;
}
.nf-quiz-leaderboard__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-right: 10px;
  vertical-align: middle;
}
.nf-quiz-leaderboard__name {
  color: #eee;
  vertical-align: middle;
}
.nf-quiz-leaderboard__you {
  display: inline-block;
  background: #d33;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.nf-quiz-leaderboard__empty {
  text-align: center;
  color: #888;
  padding: 32px;
}

.nf-homepage-quiz-widget {
  border: 1px solid #eee;
  background: #fff;
}
.nf-homepage-quiz-widget .nf-quiz__intro-body {
  padding: 1rem;
}
.nf-homepage-quiz-widget .nf-quiz {
  border: 0;
}
.nf-homepage-quiz-widget .nf-quiz__title {
  font-size: 2.2rem;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 0.5rem;
}
.nf-homepage-quiz-widget .nf-quiz__desc,
.nf-homepage-quiz-widget .nf-quiz__meta,
.nf-homepage-quiz-widget .nf-quiz__login-hint {
  padding: 0;
}
.nf-homepage-quiz-widget .nf-quiz__meta {
  margin-bottom: 0.35rem;
}
.nf-homepage-quiz-widget .nf-quiz__login-hint {
  margin-bottom: 0.75rem;
}
.nf-homepage-quiz-widget .nf-quiz__start,
.nf-homepage-quiz-widget .nf-quiz .btn-primary {
  margin: 0;
}
.nf-homepage-quiz-widget .nf-quiz__answer span {
  font-size: 0.9rem;
  line-height: 1.25;
}
