/* Portal de competidores: línea de salida (pista en perspectiva, árbol de salida y organizadores oficiales) */
.gate-art { isolation: isolate; }
.warp { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rt-track { position: absolute; inset: 0; perspective: 520px; perspective-origin: 50% 38%; }
.rt-floor { position: absolute; left: -60%; right: -60%; top: 50%; height: 120%; transform-origin: 50% 0; transform: rotateX(76deg);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.55) calc(50% - 1px), rgba(255,255,255,.55) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 100% 120px,
    linear-gradient(90deg, transparent 29.6%, #e10f1f 29.6%, #e10f1f 30.4%, transparent 30.4%, transparent 69.6%, #e10f1f 69.6%, #e10f1f 70.4%, transparent 70.4%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 60px),
    linear-gradient(90deg, transparent 30%, rgba(255,255,255,.035) 30%, rgba(255,255,255,.035) 70%, transparent 70%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
          mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  animation: rt-run 1.6s linear infinite; }
.rt-floor { background-repeat: repeat-y, no-repeat, repeat, no-repeat; }
@keyframes rt-run { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 120px, 0 0, 0 60px, 0 0; } }
.rt-beam { position: absolute; top: -20%; width: 46%; height: 120%; opacity: .5; filter: blur(2px);
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 70%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
.rt-beam.l { left: -6%; transform: rotate(-18deg); animation: rt-beam 7s ease-in-out infinite; }
.rt-beam.r { right: -6%; transform: rotate(18deg); animation: rt-beam 7s ease-in-out -3.5s infinite; }
@keyframes rt-beam { 0%, 100% { opacity: .22; } 50% { opacity: .55; } }
.gate-art::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 50% 36%, rgba(225,15,31,.30), transparent 70%), radial-gradient(90% 60% at 50% 110%, rgba(0,0,0,.85), transparent 70%); }

/* logo de Racing Track */
.gate-art .gate-logo { z-index: 2; display: grid; justify-items: center; text-align: center; }
.gate-art .gate-status, .gate-art .gate-foot { position: relative; z-index: 2; }
.gate-art .egp-word { position: relative; width: min(100%, 540px); margin-inline: auto; animation: rt-in 1.1s cubic-bezier(.16, 1, .3, 1) .15s both; }
.gate-art .egp-word .logo-img { filter: drop-shadow(0 0 36px rgba(225,15,31,.45)) drop-shadow(0 24px 40px rgba(0,0,0,.9)); }
.gate-art .egp-word::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/static/rt-logo.png?v=1) left top / 100% auto no-repeat; mask: url(/static/rt-logo.png?v=1) left top / 100% auto no-repeat;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%) -150% 0 / 55% 100% no-repeat;
  animation: rt-shine 6s ease-in-out 1.4s infinite; }
.gate-art .egp-word.org::after { display: none; }
@keyframes rt-in { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rt-shine { 0% { background-position: -150% 0; } 35%, 100% { background-position: 250% 0; } }
.gate-art .egp-tag { margin-top: 10px; }
.gate-art .egp-stripes { display: none; }

/* árbol de salida */
.rt-tree { display: flex; gap: 14px; justify-content: center; margin: 22px 0 6px; padding: 10px 16px; border-radius: 99px;
  background: linear-gradient(180deg, #16181d, #0a0b0e); border: 1px solid #2a2f38; box-shadow: inset 0 2px 8px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.5); }
.rt-tree i { width: 22px; height: 22px; border-radius: 50%; background: #2a1d0a; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
.rt-tree i.g { background: #0b2412; }
.rt-tree i.a1 { animation: rt-amber 6s infinite; } .rt-tree i.a2 { animation: rt-amber 6s .5s infinite; } .rt-tree i.a3 { animation: rt-amber 6s 1s infinite; }
.rt-tree i.g { animation: rt-green 6s 1.5s infinite; }
@keyframes rt-amber { 0%, 4% { background: #2a1d0a; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
  6%, 30% { background: radial-gradient(circle at 35% 30%, #fff3c4, #ffb21e 55%, #b36a00); box-shadow: 0 0 18px #ffae1a, 0 0 40px rgba(255,174,26,.5); }
  32%, 100% { background: #2a1d0a; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); } }
@keyframes rt-green { 0%, 4% { background: #0b2412; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
  6%, 36% { background: radial-gradient(circle at 35% 30%, #e2ffe9, #29e06b 55%, #0b8a3a); box-shadow: 0 0 20px #29e06b, 0 0 46px rgba(41,224,107,.55); }
  38%, 100% { background: #0b2412; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); } }
.rt-tree.sm { gap: 9px; margin: 12px auto 2px; padding: 7px 12px; width: max-content; }
.rt-tree.sm i { width: 15px; height: 15px; }

/* organizadores oficiales */
.rt-orgs { width: min(100%, 760px); margin-top: 26px; display: grid; gap: 14px; }
.rt-orgs-k { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.rt-orgs-k i { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35)); }
.rt-orgs-k i:last-child { background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }
.rt-orgs-k span { font: 800 13px/1 var(--display, "Barlow Condensed", sans-serif); letter-spacing: 4px; text-transform: uppercase; color: #ffb3b8; }
.rt-orgs-view { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rt-orgs-row { display: flex; justify-content: center; gap: 16px; padding: 6px 4px 12px; width: max-content; margin: 0 auto; }
.rt-orgs-row.run { justify-content: flex-start; animation: rt-marquee var(--dur, 20s) linear infinite; margin: 0; }
.rt-orgs-view:hover .rt-orgs-row.run { animation-play-state: paused; }
@keyframes rt-marquee { to { transform: translateX(-50%); } }
.rt-org { pointer-events: auto; position: relative; display: grid; place-items: center; width: 200px; height: 112px; padding: 14px 18px; border-radius: 18px;
  text-decoration: none; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(180deg, #1b1e25, #0d0f13);
  border: 1px solid #333946; box-shadow: 0 16px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .25s, box-shadow .25s, border-color .25s; animation: rt-org-in .7s cubic-bezier(.16, 1, .3, 1) both; }
.rt-org::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #e10f1f, #ff4d57, #e10f1f, transparent); }
.rt-org::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-120%); animation: rt-glint 5s ease-in-out infinite; }
.rt-org:nth-child(2)::after { animation-delay: .8s; } .rt-org:nth-child(3)::after { animation-delay: 1.6s; } .rt-org:nth-child(4)::after { animation-delay: 2.4s; }
.rt-org:hover { transform: translateY(-4px) scale(1.03); border-color: #e10f1f; box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 0 1px #e10f1f, 0 0 30px rgba(225,15,31,.35); }
.rt-org img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.7)) drop-shadow(0 0 1px rgba(255,255,255,.5)); }
.rt-org b { position: relative; z-index: 1; font: italic 900 20px/1.05 var(--display, sans-serif); text-transform: uppercase; text-align: center; letter-spacing: .5px; }
@keyframes rt-glint { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes rt-org-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gate-art .gate-feats { display: none; }

/* celular: logo, árbol y organizadores compactos encima del formulario, sin tener que bajar */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1280px) {
  body.rt-main-login .gate-panel { padding: 14px 18px 28px; gap: 10px; }
  body.rt-main-login .gate-mobile-logo { padding: 8px 0 4px; position: relative; }
  body.rt-main-login .gate-mobile-logo::before { content: ""; position: absolute; inset: -14px -18px 0; z-index: -1; pointer-events: none;
    background: radial-gradient(70% 60% at 50% 20%, rgba(225,15,31,.28), transparent 70%); }
  body.rt-main-login .gate-mobile-logo .egp-word { width: min(62vw, 260px); margin: 0 auto; display: block; }
  body.rt-main-login .gate-mobile-logo .egp-word .logo-img { filter: drop-shadow(0 0 24px rgba(225,15,31,.4)); }
  body.rt-main-login .gate-mobile-logo .egp-tag { font-size: 10px; letter-spacing: 2.4px; margin-top: 8px; }
  body.rt-main-login .gate-panel h1 { font-size: 30px !important; margin-top: 4px; }
  body.rt-main-login .gate-panel section > p { margin-top: 4px; }
  body.rt-main-login .gate-top { margin-top: 4px; }
  .rt-orgs.sm { width: 100%; margin-top: 10px; gap: 8px; }
  .rt-orgs.sm .rt-orgs-k span { font-size: 10px; letter-spacing: 3px; }
  .rt-orgs.sm .rt-orgs-row { gap: 10px; padding: 2px 2px 6px; }
  .rt-orgs.sm .rt-org { width: 116px; height: 64px; padding: 8px 10px; border-radius: 13px; }
  .rt-orgs.sm .rt-org b { font-size: 13px; }
}
@media (max-height: 760px) and (min-width: 901px) and (orientation: landscape) {
  .gate-art .egp-word { width: min(100%, 420px); }
  .rt-org { width: 170px; height: 92px; }
  .rt-orgs { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-floor, .rt-beam, .rt-tree i, .rt-orgs-row.run, .rt-org, .rt-org::after, .gate-art .egp-word, .gate-art .egp-word::after { animation: none !important; }
}
