/* Guest (phone) specific styles. */

.qbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

#q-image {
  display: block;
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--surface-2);
}

#q-text {
  font-size: clamp(1.4rem, 5vw, 2rem);
}

/* ---- answer options ----------------------------------------------------- */

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-2);
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.option:hover {
  transform: translateY(-1px);
}
.option:active {
  transform: scale(0.99);
}
.option .tick {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 3px solid #cfc6ee;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.option.selected {
  border-color: var(--purple);
  background: #f1ebff;
}
.option.selected .tick {
  background: var(--purple);
  border-color: var(--purple);
}

/* Review state (after the question ends). */
.options.review .option {
  cursor: default;
}
.option.correct {
  border-color: var(--teal);
  background: #e3fff6;
}
.option.correct .tick {
  background: var(--teal);
  border-color: var(--teal);
}
.option.wrong-pick {
  border-color: var(--red);
  background: #ffe9ef;
}
.option.wrong-pick .tick {
  background: var(--red);
  border-color: var(--red);
}
.option .badge {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}
.option.correct .badge {
  background: var(--teal);
  color: #053d2e;
}

/* ---- result ------------------------------------------------------------- */

.result-emoji {
  font-size: 4.5rem;
  animation: pulse 1s ease-in-out 2;
}
.result-points {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 4px 0 12px;
}
.score-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---- scoreboard --------------------------------------------------------- */

.final-yours {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.scoreboard {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}
.scoreboard li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 8px;
  font-weight: 700;
  animation: pop-in 0.35s ease both;
}
.scoreboard li .rank {
  font-weight: 900;
  width: 2.2rem;
  text-align: center;
  font-size: 1.2rem;
}
.scoreboard li .pts {
  margin-left: auto;
  font-weight: 900;
  color: var(--purple);
}
.scoreboard li.you {
  outline: 3px solid var(--purple);
}
.scoreboard li.top1 {
  background: linear-gradient(135deg, #fff3c4, #ffe08a);
}
.scoreboard li.top2 {
  background: linear-gradient(135deg, #eef1f5, #d7dee8);
}
.scoreboard li.top3 {
  background: linear-gradient(135deg, #ffe6d0, #ffcfa8);
}
