/* The Draft Order Race (TV big board and the public race page). Fixed 1920-wide canvas. */
.race { position: absolute; inset: 0 0 58px 0; z-index: 8; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, rgba(200,16,46,.30), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(232,196,111,.10), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(232,196,111,.10), transparent 40%), linear-gradient(180deg, rgba(6,7,10,.80), rgba(6,7,10,.94)), url(/img/stadium.jpg) center / cover no-repeat, #06070A; }
.race[hidden] { display: none; }
.rsound { font-family: var(--os); font-weight: 600; font-size: 14px; letter-spacing: 2px; padding: 8px 14px; border-radius: 4px; cursor: pointer;
          background: transparent; color: #8A8F98; border: 1px solid #2A2E36; margin-left: 6px; }
.rsound.on { color: var(--gold); border-color: rgba(212,175,55,.5); }
.rsound.blocked { color: #fff; background: #C8102E; border-color: #C8102E; animation: pulse 1.6s ease-in-out infinite; }
.rh { position: absolute; left: 0; top: 0; right: 0; height: 84px; display: flex; align-items: center; gap: 18px; padding: 0 30px; z-index: 3;
      background: linear-gradient(180deg, rgba(5,6,9,.96), rgba(5,6,9,.72)); border-bottom: 1px solid var(--line); }
.rh img { height: 52px; width: auto; } .rh > span { font-family: var(--os); font-weight: 600; font-size: 38px; letter-spacing: 1px; } .rh i { flex: 1; }
.rh em { font-style: normal; font-family: var(--os); font-weight: 500; font-size: 20px; letter-spacing: 4px; color: #C9CED8; }
.rboard { position: absolute; left: 60px; top: 100px; width: 1800px; height: 560px; border: 1px solid var(--line); border-radius: 8px; box-shadow: inset 0 0 80px rgba(0,0,0,.6);
  background: radial-gradient(ellipse at 50% 0%, rgba(200,16,46,.16), transparent 60%), linear-gradient(180deg, rgba(14,15,19,.92), rgba(8,9,12,.92)); }
.peg { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F3D995, #8C7342); box-shadow: 0 0 8px rgba(232,196,111,.35); }
.finish { position: absolute; left: 60px; width: 1800px; top: 618px; height: 4px; animation: linepulse 1.6s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(232,196,111,.2), #E8C46F 15%, #F3D995 50%, #E8C46F 85%, rgba(232,196,111,.2)); box-shadow: 0 0 18px rgba(232,196,111,.6); }
.flabel { position: absolute; left: 0; right: 0; top: 628px; display: flex; justify-content: center; }
.flabel span { font-family: var(--os); font-weight: 600; font-size: 18px; letter-spacing: 5px; color: var(--gold); background: rgba(6,7,10,.9); padding: 2px 18px; border: 1px solid var(--line); border-radius: 3px; }
.token { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; will-change: transform; transition: opacity .25s; }
.token span { position: relative; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff;
  font-family: var(--os); font-weight: 600; font-size: 19px; box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(200,16,46,.6), 0 8px 18px rgba(0,0,0,.6); }
.token img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rbar { position: absolute; left: 60px; right: 60px; top: 676px; display: flex; justify-content: space-between; align-items: baseline; }
.rbar span { font-family: var(--os); font-weight: 600; font-size: 22px; letter-spacing: 3px; }
.rbar em { font-style: normal; font-family: var(--os); font-weight: 500; font-size: 20px; letter-spacing: 4px; color: var(--gold); }
.rcards { position: absolute; left: 60px; top: 716px; width: 1800px; display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); gap: 12px; }
/* More than 12 teams: two shorter rows of cards */
.rcards.two { gap: 10px; } .rcards.two .rc { height: 150px; padding: 8px 6px 10px; } .rcards.two .rc > b { font-size: 30px; }
.rcards.two .rc .av, .rcards.two .rc .ph, .rcards.two .rc .wait i { width: 50px; height: 50px; font-size: 19px; }
.rcards.two .rc small, .rcards.two .rc em, .rcards.two .rc .wait span { display: none; } .rcards.two .rc strong { font-size: 14px; -webkit-line-clamp: 1; }
.rc { height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 8px 16px; border-radius: 6px; min-width: 0; border: 1px solid #5A2A33; }
.rc > b { font-family: var(--os); font-weight: 600; font-size: 46px; line-height: 1; }
.rc.revealed { border: 2px solid var(--gold); background: linear-gradient(180deg, rgba(200,16,46,.55), rgba(70,6,16,.92) 55%, #0B0A0C); }
.rc.revealed > b { color: var(--gold); }
.rc.swirl { background: radial-gradient(circle at 30% 38%, rgba(227,18,44,.40) 0, transparent 34%), radial-gradient(circle at 72% 64%, rgba(227,18,44,.30) 0, transparent 30%),
  repeating-radial-gradient(circle at 50% 50%, rgba(227,18,44,.14) 0 2px, transparent 2px 15px), linear-gradient(180deg, #1A0A0E, #08090B); }
.rc .wait { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rc .wait i { width: 82px; height: 82px; border-radius: 50%; border: 2px dashed rgba(232,196,111,.45); }
.rc .wait span { font-family: var(--os); font-size: 14px; letter-spacing: 3px; color: #8F959C; }
.rc .who { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.rc .av, .rc .ph { width: 82px; height: 82px; border-radius: 50%; display: flex; align-items: center; justify-content: center; object-fit: cover;
  background: var(--red); color: #fff; font-family: var(--os); font-weight: 600; font-size: 30px; box-shadow: 0 0 0 3px var(--gold); }
.rc strong { overflow-wrap: anywhere; font-family: var(--os); font-weight: 600; font-size: 17px; line-height: 1.1; text-align: center; max-width: 100%; overflow: hidden; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc small { font-size: 13px; color: #F0D9DD; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc em { font-style: normal; font-family: var(--os); font-weight: 600; font-size: 12px; letter-spacing: 2px; color: #12151A; background: var(--gold); padding: 2px 8px; border-radius: 2px; }
@keyframes land { 0% { box-shadow: 0 0 0 2px #E8C46F, 0 0 0 0 rgba(232,196,111,0) } 35% { box-shadow: 0 0 0 3px #F3D995, 0 0 50px 14px rgba(232,196,111,.8) } 100% { box-shadow: 0 0 0 2px #E8C46F, 0 0 0 0 rgba(232,196,111,0) } }
@keyframes winner { 0%,100% { box-shadow: 0 0 0 2px #E8C46F, 0 0 16px 2px rgba(232,196,111,.35) } 50% { box-shadow: 0 0 0 3px #F3D995, 0 0 36px 8px rgba(232,196,111,.6) } }
@keyframes linepulse { 0%,100% { opacity: .85 } 50% { opacity: 1 } }
.rc.just { animation: land 1.1s ease-out both; } .rc.win { animation: winner 1.8s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .token { display: none; } .rc.just, .rc.win, .finish { animation: none; } }
