/* =====================================================================
   Rookies Selection — riepilogo dopo la chiusura e risultati (v2)
   Banner fase, podio delle 3 schedine migliori, numeri, curiosità, più scelti per nazione.
   ===================================================================== */

.rkr {
  padding: 2rem 0 1rem;
  color: #fff;
}

.rkr-h {
  margin: 2.25rem 0 0.9rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- banner ---------- */
.rkr-banner {
  position: relative;
  overflow: hidden;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.75rem;
  border-radius: 1.25rem;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(226, 0, 59, 0.45), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    #0b1638;
  border: 2px solid #e2003b;
  box-shadow: 0 20px 50px rgba(3, 8, 26, 0.6);
}

.rkr-banner.is-res {
  border-color: #ffc906;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 201, 6, 0.3), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    #0b1638;
}

.rkr-flag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 12px 12px;
}

.rkr-kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: #c8003a;
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.is-res .rkr-kicker {
  background: #ffc906;
  color: #0b1638;
}

.rkr-title {
  margin: 0 0 0.75rem;
  font-family: "Saira Condensed", "Titillium Web", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(226, 0, 59, 0.55);
}

.rkr-text {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.rkr-wait {
  margin: 1rem auto 0;
  max-width: 34rem;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: rgba(255, 201, 6, 0.1);
  border-left: 3px solid #ffc906;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
}

/* ---------- podio ---------- */
.rkr-podio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.6rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rkr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  text-align: center;
}

.rkr-medal {
  font-size: 2.2rem;
  line-height: 1;
}

.rkr-step--1 .rkr-medal {
  font-size: 3rem;
}

.rkr-who {
  max-width: 100%;
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rkr-who:hover {
  color: #ffc906;
}

.rkr-pts {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #ffc906;
}

.rkr-hits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.45rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.rkr-hits span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.rkr-hits img {
  border-radius: 1px;
}

.rkr-base {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 0.6rem 0.6rem 0 0;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #0b1638;
}

.rkr-step--1 .rkr-base {
  height: 6rem;
  background: linear-gradient(180deg, #ffd84a, #e0a800);
}

.rkr-step--2 .rkr-base {
  height: 4.5rem;
  background: linear-gradient(180deg, #e9edf5, #a9b2c3);
}

.rkr-step--3 .rkr-base {
  height: 3.5rem;
  background: linear-gradient(180deg, #e7a46a, #b06a2c);
}

/* ---------- numeri ---------- */
.rkr-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.6rem;
  max-width: 46rem;
  margin: 0 auto;
}

.rkr-tiles div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border-radius: 0.9rem;
  background: rgba(16, 32, 77, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.rkr-tiles strong {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: #ffc906;
}

.rkr-tiles span {
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.rkr-tiles small {
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- distribuzione punti ---------- */
.rkr-distr {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rkr-distr li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  font-size: 0.875rem;
}

.rkr-distr .l {
  font-weight: 700;
  text-align: right;
  color: rgba(255, 255, 255, 0.8);
}

.rkr-distr .b {
  height: 0.9rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rkr-distr .b i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffc906, #e2003b);
}

.rkr-distr .v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- curiosità ---------- */
.rkr-facts {
  display: grid;
  gap: 0.5rem;
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.rkr-facts li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border-radius: 0.7rem;
  background: rgba(16, 32, 77, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.rkr-facts li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.7rem;
  background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 0.35rem 0.35rem;
  border-radius: 2px;
}

.rkr-facts strong {
  color: #ffc906;
}

/* ---------- più scelti per nazione ---------- */
.rkr-naz {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.4rem 1rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rkr-naz li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(16, 32, 77, 0.45);
  font-size: 0.875rem;
}

.rkr-naz img {
  flex: none;
  border-radius: 2px;
}

.rkr-naz .t {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rkr-naz .v {
  flex: none;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.rkr-cta {
  margin: 2rem 0 0;
  text-align: center;
}

@media (max-width: 560px) {
  .rkr-podio {
    gap: 0.35rem;
  }

  .rkr-who {
    font-size: 0.875rem;
  }

  .rkr-hits {
    display: none;
  }

  .rkr-tiles strong {
    font-size: 2.2rem;
  }

  .rkr-distr li {
    grid-template-columns: 5.5rem 1fr 2rem;
  }
}

/* pari merito con il 3° */
.rkr-pari {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  font-size: 0.875rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.rkr-pari strong {
  color: #ffc906;
}

/* ---------- attesa del verdetto: semafori di partenza ----------
   I 5 rossi si accendono uno alla volta e restano accesi; ogni tanto si spengono insieme e ripartono.
   "Lights out" = i selezionati. */
.rkr-lights {
  display: inline-flex;
  gap: 0.55rem;
  margin: 0.6rem 0 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  background: #05070f;
  box-shadow: inset 0 0 0 2px #1d2540, 0 8px 24px rgba(0, 0, 0, 0.5);
}

.rkr-lights i {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #2a0a12;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6);
  animation: 6s linear infinite;
}

.rkr-lights i:nth-child(1) { animation-name: rkr-l1; }
.rkr-lights i:nth-child(2) { animation-name: rkr-l2; }
.rkr-lights i:nth-child(3) { animation-name: rkr-l3; }
.rkr-lights i:nth-child(4) { animation-name: rkr-l4; }
.rkr-lights i:nth-child(5) { animation-name: rkr-l5; }

@keyframes rkr-l1 {
  0%, 11.9% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
  12%, 93% { background: #ff1a3c; box-shadow: 0 0 14px 3px rgba(255, 26, 60, 0.75), inset 0 -3px 6px rgba(120, 0, 20, 0.5); }
  93.1%, 100% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
}

@keyframes rkr-l2 {
  0%, 23.9% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
  24%, 93% { background: #ff1a3c; box-shadow: 0 0 14px 3px rgba(255, 26, 60, 0.75), inset 0 -3px 6px rgba(120, 0, 20, 0.5); }
  93.1%, 100% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
}

@keyframes rkr-l3 {
  0%, 35.9% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
  36%, 93% { background: #ff1a3c; box-shadow: 0 0 14px 3px rgba(255, 26, 60, 0.75), inset 0 -3px 6px rgba(120, 0, 20, 0.5); }
  93.1%, 100% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
}

@keyframes rkr-l4 {
  0%, 47.9% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
  48%, 93% { background: #ff1a3c; box-shadow: 0 0 14px 3px rgba(255, 26, 60, 0.75), inset 0 -3px 6px rgba(120, 0, 20, 0.5); }
  93.1%, 100% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
}

@keyframes rkr-l5 {
  0%, 59.9% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
  60%, 93% { background: #ff1a3c; box-shadow: 0 0 14px 3px rgba(255, 26, 60, 0.75), inset 0 -3px 6px rgba(120, 0, 20, 0.5); }
  93.1%, 100% { background: #2a0a12; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.6); }
}

/* puntini dopo "In attesa del verdetto" */
.rkr-dots i {
  font-style: normal;
  animation: rkr-dot 1.4s infinite;
}

.rkr-dots i:nth-child(2) { animation-delay: 0.2s; }
.rkr-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes rkr-dot {
  0%, 60%, 100% { opacity: 0.15; }
  30% { opacity: 1; }
}

.rkr-sub {
  max-width: 36rem;
  margin: -0.4rem auto 1rem;
  font-size: 0.9375rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- i 24 più scelti per nazione ---------- */
.rkr-grp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rkr-grp li {
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  background: rgba(16, 32, 77, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rkr-grp-naz {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.rkr-grp-naz img {
  border-radius: 2px;
}

.rkr-grp-p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
}

.rkr-grp-p span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.875rem;
}

.rkr-grp-p span.is-hit {
  background: #ffc906;
  color: #0b1638;
}

.rkr-story {
  margin: 0.8rem 0 0;
  text-align: center;
}

.rkr-story a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc906;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .rkr-lights i {
    animation: none;
    background: #ff1a3c;
  }

  .rkr-dots i {
    animation: none;
    opacity: 1;
  }
}

/* ---------- fase finale ---------- */
/* semafori spenti: lights out! */
.rkr-lights.is-out i {
  animation: none;
  background: #1a0a10;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.7);
}

/* i selezionati: schede con bandiera sullo sfondo e bordo oro */
.rkr-sel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.6rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rkr-sel li {
  --flag: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  isolation: isolate;
  background: #0b1638;
  border: 2px solid #ffc906;
  box-shadow: 0 10px 30px rgba(255, 201, 6, 0.18);
  animation: rkn-in 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.rkr-sel li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--flag) center / cover no-repeat;
  opacity: 0.5;
  transform: skewX(-8deg) scale(1.25);
}

.rkr-sel li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 13, 36, 0.3), rgba(7, 13, 36, 0.92) 55%);
}

.rkr-sel img {
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.rkr-sel .n {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.05;
}

.rkr-sel small {
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.rkr-sel b {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #ffc906;
  overflow-wrap: anywhere;
}

.rkr-sel .v {
  flex: none;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.rkr-congrats {
  max-width: 40rem;
  margin: 1.2rem auto 0;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 201, 6, 0.12);
  border: 1px solid rgba(255, 201, 6, 0.5);
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.rkr-congrats strong {
  color: #ffc906;
}

@media (prefers-reduced-motion: reduce) {
  .rkr-sel li {
    animation: none;
  }
}

/* ora della schedina sotto ogni nome del podio + regola di parità */
.rkr-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.rkr-rule {
  max-width: 40rem;
  margin: 1.2rem auto 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #fff;
}

/* vincitori a pari merito: tutti uguali, schede dorate */
.rkr-win {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.7rem;
  max-width: 60rem;
  margin: 1.2rem auto 0;
  padding: 0;
  list-style: none;
}

.rkr-win li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.9rem 1.1rem;
  border-radius: 1rem;
  text-align: center;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 201, 6, 0.28), transparent 70%),
    #0b1638;
  border: 2px solid #ffc906;
  box-shadow: 0 12px 32px rgba(255, 201, 6, 0.18);
  animation: rkn-in 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.rkr-win-cup {
  font-size: 2.4rem;
  line-height: 1;
}

.rkr-win .rkr-who {
  font-size: 1.2rem;
}

.rkr-win .rkr-hits {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .rkr-win li {
    animation: none;
  }
}
