/* Placement test (screens/placement.js) and its card on the league page. The question itself uses the practice
   styles (.practice …); this file only adds the intro, the progress dots and the reveal of the start tier. */

/* intro */
.placement .pt-intro { text-align: center; padding: 6px 2px 0; }
.placement .pt-h { margin: 14px 0 8px; }
.placement .pt-intro .sub { margin: 0 auto; max-width: 34em; }
.placement .pt-facts { text-align: left; margin: 16px auto 0; padding-left: 1.2em; max-width: 30em; display: grid; gap: 6px; }
.placement .pt-later-note { text-align: center; margin-top: 10px; }
.placement .pt-intro .pt-dots { justify-content: center; margin-top: 14px; }

/* the four tiers a placement can give */
.pt-ladder { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 6px 0 0; }
.pt-rung { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; opacity: .9; }
.pt-rung .tier-emb { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.pt-rung small { font-size: 12px; font-weight: var(--w-bold); color: var(--text-2); }
.pt-rung:nth-child(2) .tier-emb { width: 44px; height: 44px; }
.pt-rung:nth-child(3) .tier-emb { width: 48px; height: 48px; }
.pt-rung:nth-child(4) .tier-emb { width: 52px; height: 52px; }
.pt-result .pt-ladder { margin-top: 14px; }
.pt-result .pt-rung { opacity: .45; }
.pt-result .pt-rung.hit { opacity: 1; }
.pt-result .pt-rung.hit small { color: var(--text); }

/* progress */
.placement .pr-next[hidden] { display: none; }
.placement .pt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 6px; }
.placement .pt-count { font-weight: 700; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.pt-dots { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pt-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 1px var(--line-2); }
.pt-dot.ok { background: var(--ok); box-shadow: none; }
.pt-dot.bad { background: var(--bad); box-shadow: none; }
.pt-dot.cur { background: transparent; box-shadow: inset 0 0 0 3px var(--accent); transform: scale(1.15); }

/* result: the emblem of the start tier, large */
.placement .pt-result { text-align: center; padding-top: 10px; }
.pt-res-k { margin: 0; font-weight: var(--w-bold); color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.pt-emb { display: grid; place-items: center; margin: 14px auto 6px; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tc2) 55%, transparent) 0%, transparent 68%); }
.pt-emb .tier-emb { width: 104px; height: 104px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.22)); }
.pt-res-name { margin: 4px 0 6px; }
.placement .pt-res-name:focus, .placement .pt-res-name:focus-visible { outline: none; box-shadow: none; }
.placement .pt-result .fine { margin-top: 12px; text-align: center; }
.pt-result.anim .pt-emb { animation: pt-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.pt-result.anim .pt-res-name { animation: pt-up .45s .35s ease-out both; }
@keyframes pt-pop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pt-up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pt-result.anim .pt-emb, .pt-result.anim .pt-res-name { animation: none; } }

/* league page: the card while the player is new */
.pt-card { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; text-decoration: none; color: inherit;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pt-card-emb { display: flex; flex: none; }
.pt-card-emb .tier-emb { width: 22px; height: 22px; margin-right: -5px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.2)); }
.pt-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pt-card-t small { color: var(--text-2); }
.pt-card-go { flex: none; display: flex; color: var(--accent); }
.pt-card-go .ico, .pt-card-go svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .placement .pt-intro, .placement .pt-result { max-width: 560px; margin-left: auto; margin-right: auto; }
}
