/* ---------- Fjölspilun ---------- */
.mp-join input#joinCode { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.av { position: relative; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  color: #fff; font: 800 14px/1 var(--font); box-shadow: 0 0 0 2px var(--card); }
.mp-code { font: 800 46px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; margin: 8px 0 6px; padding-left: .16em;
  background: var(--btn-bg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-players { display: flex; flex-direction: column; gap: 10px; }
.mp-player { display: flex; align-items: center; gap: 10px; animation: mpIn .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.mp-player .nm { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-bar { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.mp-bar > div { height: 100%; background: var(--btn-bg); border-radius: 4px; transition: width .5s; }
@keyframes mpIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.mp-dots::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; animation: mpDots 1.4s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes mpDots { 0% { width: 0; } 100% { width: 1.2em; } }
.mp-hourglass { font-size: 44px; animation: mpFlip 2.4s ease-in-out infinite; display: inline-block; }
@keyframes mpFlip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

.mp-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted);
  background-color: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 3px; }
.mp-chip .av { width: 22px; height: 22px; font-size: 11px; box-shadow: none; }
.mp-chip.done { color: var(--ok); border-color: var(--ok); }
.mp-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.mp-chip.plus { animation: chipPop .5s cubic-bezier(.3, 1.6, .5, 1); border-color: var(--ok); }
.mp-chip.plus::after { content: "+1"; position: absolute; right: -6px; top: -12px; color: var(--ok); font-weight: 800; font-size: 13px;
  animation: plusUp 1.2s ease-out forwards; }
@keyframes chipPop { 50% { transform: scale(1.12); } }
@keyframes plusUp { from { opacity: 1; transform: translateY(4px); } to { opacity: 0; transform: translateY(-16px); } }
.opt.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--opt-bg)); }
.opt.picked .letter { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Afhjúpun */
.rv .opt { border-radius: 12px; align-items: center; min-height: 54px;
  opacity: 0; transform: translateX(-16px);
  transition: opacity .4s, transform .45s cubic-bezier(.2, .9, .3, 1.2), background .45s, border-color .45s, box-shadow .45s;
  transition-delay: calc(var(--i) * 90ms); }
.rv .opt .txt { flex: 1; }
.rv.r1 .opt { opacity: 1; transform: none; }
.rv-q { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.rv.r0 .rv-q { opacity: 1; transform: none; }
.rv-pk { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.rv-pk .av { width: 28px; height: 28px; font-size: 12px; opacity: 0; transform: translateY(-36px) scale(.4);
  transition: transform .55s cubic-bezier(.2, .9, .3, 1.5), opacity .25s; transition-delay: calc(var(--j) * 110ms); }
.rv.r2 .rv-pk .av { opacity: 1; transform: none; }
.rv.r3 .opt.correct-ans { border-color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 28%, transparent); transition-delay: 0s; }
.rv.r3 .opt.correct-ans .letter { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.rv.r3 .opt:not(.correct-ans) { opacity: .5; transition-delay: 0s; }
.rv.r3 .opt.correct-ans .av { animation: rvJump .7s cubic-bezier(.3, 1.7, .5, 1) both; animation-delay: calc(var(--j) * 70ms); }
.rv.r3 .opt.correct-ans .av::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ok); color: var(--bg); font-size: 10px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.rv.r3 .opt:not(.correct-ans) .av { animation: rvShake .5s both; filter: grayscale(.7); }
@keyframes rvJump { 0% { transform: none; } 40% { transform: translateY(-12px) scale(1.15); } 100% { transform: none; } }
@keyframes rvShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.rv-expl { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.rv.r4 .rv-expl { opacity: 1; transform: none; }
.rv-timer { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.rv-timer > div { height: 100%; width: 0; background: var(--btn-bg); }
.rv.r4 .rv-timer > div { width: 100%; transition: width 6.4s linear; }

/* Verðlaunapallur */
.pod { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 250px; margin: 6px 0 16px; }
.pod-col { display: flex; flex-direction: column; align-items: center; width: 30%; max-width: 130px; }
.pod-col .av { width: 50px; height: 50px; font-size: 21px; margin-bottom: 6px; opacity: 0; animation: mpIn .5s both; animation-delay: calc(var(--dl) + .5s); }
.pod-name { font-weight: 700; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-score { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pod-block { width: 100%; height: 0; overflow: hidden; border-radius: 12px 12px 4px 4px; background: var(--btn-bg); color: var(--accent-text);
  display: flex; justify-content: center; padding-top: 8px; font: 800 28px/1 var(--font-head);
  transition: height 1s cubic-bezier(.2, .9, .3, 1.1); transition-delay: var(--dl); }
.pod.go .pod-block { height: var(--h); }
.crown { font-size: 30px; opacity: 0; animation: crownIn .8s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--dl) + 1s); }
@keyframes crownIn { from { opacity: 0; transform: translateY(-20px) rotate(-20deg) scale(.4); } to { opacity: 1; transform: none; } }
.mp-nextcard { text-align: center; border-color: var(--accent); animation: mpIn .5s both; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -20px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--r)); } }
