/* PICO · css/pages/tournament.css — estilos SOLO de la página «tournament» (/tournament/).
   Lo común (tokens, .phero, .chip, .lb, .crtp, .btn, .fresh…) está en /css/base.css (docs/FRONTEND.md).
   Todo lo de aquí lleva el prefijo tn- para no chocar con nada.
   Las animaciones se paran SOLO con html.sin-movimiento (regla global de base.css), nunca con prefers-reduced-motion. */

/* =====================================================================
   CABECERA «THE TOURNAMENT»
   ===================================================================== */
.tn-hero { padding: 46px 0 54px; }
.tn-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: center; }
.tn-hero__copy { min-width: 0; }
.tn-chips { list-style: none; margin: 22px 0 0; padding: 0; }
.tn-chips .chip { padding: 9px 12px 8px; font-size: 13.5px; border-color: var(--ink); box-shadow: 4px 4px 0 rgba(7, 18, 12, .55); }
.tn-chips .chip b { color: var(--green); }

/* el pico sobre un podio de 3 escalones (decorado) */
.tn-hero__art { position: relative; height: 400px; }
.tn-trophy { position: absolute; left: 50%; bottom: 0; width: 330px; height: 400px; margin-left: -165px; }
.tn-trophy__ring {
  position: absolute; left: 50%; top: 18px; width: 250px; height: 250px; margin-left: -125px;
  border-radius: 50%; border: 4px dashed var(--ink); opacity: .75;
  animation: tnSpin 40s linear infinite;
}
.tn-trophy__disc {
  position: absolute; left: 50%; top: 48px; width: 190px; height: 190px; margin-left: -95px;
  border-radius: 50%; background: radial-gradient(circle, var(--purple-deep) 0 56%, var(--purple) 57% 100%);
  border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.tn-trophy__pico { position: absolute; left: 50%; top: -6px; width: 196px; margin-left: -98px; z-index: 2; animation: tnFloat 5.2s ease-in-out 1s infinite; }
.tn-trophy__pico img { width: 100%; height: auto; filter: drop-shadow(9px 10px 0 rgba(7, 18, 12, .9)); }
.tn-steps { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; }
.tn-steps span {
  display: grid; place-items: start center; padding-top: 10px;
  font: 900 calc(46px * var(--ds)) / 1 var(--f-display); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
}
.tn-steps .s1 { height: 132px; background: var(--gold); z-index: 1; }
.tn-steps .s2 { height: 96px; background: var(--silver); margin-right: -4px; }
.tn-steps .s3 { height: 70px; background: var(--bronze); margin-left: -4px; }
@keyframes tnFloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 3deg; } }
@keyframes tnSpin { to { rotate: 360deg; } }

/* =====================================================================
   PESTAÑAS (?view=standings | predict | rules)
   ===================================================================== */
.tn-tabsbar { padding-top: 30px; }
.tn-tabs { display: inline-flex; max-width: 100%; border: 3px solid var(--mint); box-shadow: 6px 6px 0 var(--purple); background: var(--ink); }
.tn-tab {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px 14px;
  font: 800 15px/1 var(--f-num); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: var(--mint); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.tn-tab + .tn-tab { border-left: 3px solid var(--mint); }
.tn-tab__n { color: var(--mint-3); letter-spacing: .1em; }
.tn-tab:hover { color: var(--green); background: var(--ink-2); }
.tn-tab[aria-current="page"] { background: var(--green); color: var(--ink); }
.tn-tab[aria-current="page"] .tn-tab__n { color: var(--green-deep); }
.tn-tab:focus-visible { outline-offset: -7px; }
.tn-tab[aria-current="page"]:focus-visible { outline-color: var(--ink); }

/* vistas */
.tn-view { padding: 46px 0 76px; }
.tn-view .sec__head { margin-bottom: 26px; }
.tn-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.tn-meta [data-board-stamp] { font: 700 12.5px/1.4 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--mint-3); }
.tn-loading { font: 700 14px/1.5 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--mint-3); }
.tn-loading.is-off { color: var(--red-2); }

/* =====================================================================
   STANDINGS · podio + reloj de la tormenta
   ===================================================================== */
.tn-top { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; align-items: end; }

.tn-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.tn-pod { --pc: var(--gold); --step: 150px; display: flex; flex-direction: column; min-width: 0; }
.tn-pod--1 { order: 2; --pc: var(--gold); --step: 168px; }
.tn-pod--2 { order: 1; --pc: var(--silver); --step: 128px; }
.tn-pod--3 { order: 3; --pc: var(--bronze); --step: 100px; }
.tn-pod__card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px 18px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 20%, var(--ink-2)) 0, var(--ink-2) 62%);
  border: 3px solid var(--pc); border-bottom: 0;
}
.tn-pod--1 .tn-pod__card { padding-top: 24px; }
.tn-pod__card .rar { font-size: 11px; }
.tn-pod__card .emb { --es: 74px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); }
.tn-pod--1 .tn-pod__card .emb { --es: 92px; }
.tn-pod__name {
  max-width: 100%;
  font: 900 calc(clamp(26px, 2.2vw, 34px) * var(--ds)) / .9 var(--f-display);
  text-transform: uppercase; letter-spacing: .01em; color: var(--white); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: skew(-6deg);
}
a.tn-pod__name:hover { color: var(--green); }
.tn-pod__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.tn-pod__meta .members { font-size: 16px; }
.tn-pod__meta .mv { font-size: 16px; }
.tn-pod .pnl { align-items: center; }
.tn-pod .pnl__v { font-size: clamp(24px, 2.1vw, 32px); }
.tn-pod .pnl__split { justify-content: center; }
.tn-pod__coin { min-height: 32px; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.tn-pod__step {
  position: relative; height: var(--step);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding-top: 12px;
  color: var(--ink); background: var(--pc);
  border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  transform-origin: 50% 100%;
}
.tn-pod__rank { font: 900 calc(54px * var(--ds)) / .8 var(--f-display); }
.tn-pod--1 .tn-pod__rank { font-size: calc(80px * var(--ds)); }
.tn-pod__prize { font: 900 21px/1 var(--f-num); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tn-pod.is-empty .tn-pod__card { border-style: dashed; }
.tn-pod__none { padding: 26px 6px; font: 700 13px/1.5 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--mint-3); }

/* entrada del podio (solo con movimiento; tn-anim la pone el JS) */
html.tn-anim:not(.sin-movimiento) .tn-podium:not(.is-in) .tn-pod__step { transform: scaleY(.06); }
html.tn-anim:not(.sin-movimiento) .tn-podium:not(.is-in) .tn-pod__card { opacity: 0; transform: translateY(26px); }
.tn-podium.is-in .tn-pod__step { animation: tnStep .75s var(--ease-pop) both; }
.tn-podium.is-in .tn-pod__card { animation: tnCard .55s var(--ease-out) both; }
.tn-podium.is-in .tn-pod--2 .tn-pod__step { animation-delay: .12s; }
.tn-podium.is-in .tn-pod--2 .tn-pod__card { animation-delay: .5s; }
.tn-podium.is-in .tn-pod--3 .tn-pod__step { animation-delay: .24s; }
.tn-podium.is-in .tn-pod--3 .tn-pod__card { animation-delay: .62s; }
.tn-podium.is-in .tn-pod--1 .tn-pod__card { animation-delay: .78s; }
@keyframes tnStep { from { transform: scaleY(.06); } to { transform: scaleY(1); } }
@keyframes tnCard { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* un squad nuevo sube al escalón */
.tn-pod__card.is-swap { animation: tnSwap .7s var(--ease-pop) both; }
@keyframes tnSwap { 0% { transform: translateY(18px) scale(.94); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* reloj de la tormenta (mismo lenguaje que el jumbotron de la portada) */
.tn-storm .crtp__screen { min-height: 318px; display: grid; place-items: center; }
.tn-storm__in { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 16px 24px; text-align: center; }
.tn-storm__h {
  font: 900 calc(clamp(28px, 2.5vw, 40px) * var(--ds)) / .86 var(--f-display);
  text-transform: uppercase; letter-spacing: .01em; color: var(--white);
  text-shadow: 0 0 22px rgba(203, 245, 221, .28);
  transform: skew(-6deg);
}
.tn-clock { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.tn-clock__u { display: flex; flex-direction: column; align-items: center; }
.tn-clock__u b {
  font: 900 clamp(50px, 4.4vw, 70px) / .86 var(--f-num);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--green);
  text-shadow: 0 0 26px rgba(18, 230, 128, .55), 0 0 3px rgba(18, 230, 128, .9);
}
.tn-clock__u span { margin-top: 8px; padding-left: .3em; font: 700 12px/1 var(--f-num); letter-spacing: .3em; text-transform: uppercase; color: var(--mint-2); }
.tn-clock i {
  padding-top: .08em; font: 900 clamp(36px, 3vw, 48px) / .9 var(--f-num); font-style: normal;
  color: var(--purple-2); text-shadow: 0 0 18px rgba(148, 107, 255, .65);
}
.tn-zone {
  position: relative; width: 88%; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--purple) 0 7px, var(--purple-deep) 7px 14px);
  border: 2px solid var(--ink-4);
}
.tn-zone__safe { position: absolute; top: 0; bottom: 0; left: 5%; right: 5%; background: var(--green); box-shadow: 0 0 14px rgba(18, 230, 128, .6); transition: left 1s linear, right 1s linear; }
.tn-storm__foot { font: 700 12.5px/1.45 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-2); }
.tn-storm .crtp__meta { font-variant-numeric: tabular-nums; }

/* =====================================================================
   STANDINGS · FEE SHARE ZONE (#4–#10)
   ===================================================================== */
.tn-fee { margin-top: 70px; }
.tn-fee__box { box-shadow: 10px 10px 0 var(--purple); }
.tn-fee__band {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px;
  padding: 24px 26px 22px;
  color: var(--ink); background: var(--green);
  border: 3px solid var(--mint); border-bottom: 0;
}
.tn-fee__band::after {
  content: ''; position: absolute; right: -40px; top: -20px; bottom: -20px; width: 42%;
  background: repeating-linear-gradient(-60deg, rgba(7, 18, 12, .08) 0 14px, transparent 14px 34px);
  pointer-events: none;
}
.tn-fee__band > * { position: relative; z-index: 1; }
.tn-fee__band .kicker { color: var(--green-deep); }
.tn-fee__band .h3 { margin-top: 10px; color: var(--ink); font-size: calc(clamp(34px, 3.6vw, 54px) * var(--ds)); }
.tn-fee__lead { margin-top: 12px; font: 800 16px/1.35 var(--f-num); letter-spacing: .18em; text-transform: uppercase; }
.tn-fee__vault {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-width: 230px; padding: 12px 16px 12px;
  color: var(--white); background: var(--ink); box-shadow: 6px 6px 0 rgba(7, 18, 12, .35);
}
.tn-fee__vault span:first-child { font: 800 12px/1 var(--f-num); letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.tn-fee__vault b { font: 900 34px/1 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tn-fee__vault b.is-soon { letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.tn-fee__vault span:last-child { font: 600 12.5px/1.3 var(--f-body); color: var(--mint-2); }
.tn-fee__box .lb { box-shadow: none; }
.tn-fee__note { margin-top: 22px; max-width: 980px; }

/* =====================================================================
   STANDINGS · tablero compacto del top 50
   ===================================================================== */
.tn-board { margin-top: 74px; }
.tn-board__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.tn-board__head .sec__meta { margin-top: 0; }
.tn-board__head .sec__meta b { color: var(--white); }
.tn-board__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 22px; }
.tn-mini { position: relative; list-style: none; margin: 0; padding: 0; background: var(--ink-2); border: 3px solid var(--mint); box-shadow: 8px 8px 0 var(--green-deep); }
.tn-mini__r { --zc: var(--purple-2); position: relative; border-bottom: 1px solid var(--ink-3); background-color: var(--ink-2); }
.tn-mini__r:last-child { border-bottom: 0; }
.tn-mini__r--p1 { --zc: var(--gold); }
.tn-mini__r--p2 { --zc: var(--silver); }
.tn-mini__r--p3 { --zc: var(--bronze); }
.tn-mini__r--fee { --zc: var(--green); }
.tn-mini__a {
  position: relative;
  display: grid; grid-template-columns: 36px 44px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 50px; padding: 7px 14px 6px 16px;
  color: var(--white); text-decoration: none;
}
.tn-mini__a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--zc); }
.tn-mini__a:hover { background: #10251A; }
.tn-mini__a:hover .tn-mini__name { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tn-mini__a:focus-visible { outline-offset: -4px; }
.tn-mini__rank { text-align: center; font: 900 21px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--zc); }
.tn-mini__mv .mv { font-size: 15px; }
.tn-mini__mv .mv--new { font-size: 11px; padding: 3px 5px 2px; }
.tn-mini__name { min-width: 0; font: 800 18px/1.15 var(--f-num); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-mini__pnl { font: 800 17px/1 var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tn-mini__ph { padding: 16px 18px; }
.tn-board__more { display: none; }
.tn-legend { margin-top: 18px; font: 700 12px/1.6 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--mint-3); }
.tn-legend b { color: var(--mint); }
.tn-prelim { margin-top: 30px; padding: 14px 18px; border: 2px dashed var(--ink-4); }
.tn-prelim b { color: var(--gold); font-weight: 700; }

/* =====================================================================
   PREDICT THE PODIUM
   ===================================================================== */
.tn-contest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 15px 20px 14px;
  border: 3px solid var(--green); background: rgba(18, 230, 128, .06);
}
.tn-contest__big { font: 900 22px/1 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.tn-contest__tba { padding: 6px 9px 5px; font: 800 13px/1 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--yellow); white-space: nowrap; }
.tn-contest__txt { flex: 1 1 320px; font: 600 14px/1.55 var(--f-body); color: var(--mint); }
.tn-contest__txt b { color: var(--white); }

/* constructor */
.tn-pk {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: 30px;
  background: var(--ink-2); border: 3px solid var(--mint); box-shadow: 10px 10px 0 var(--purple);
}
.tn-pk__side { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; border-right: 3px solid var(--ink-3); }
.tn-pk__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tn-pk__ttl { font: 900 calc(30px * var(--ds)) / .9 var(--f-display); text-transform: uppercase; color: var(--white); transform: skew(-6deg); }
.tn-pk__count { font: 800 13px/1 var(--f-num); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-2); font-variant-numeric: tabular-nums; }
.tn-pk__count b { color: var(--green); }

.tn-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tn-slot { --pc: var(--gold); position: relative; }
.tn-slot--2 { --pc: var(--silver); }
.tn-slot--3 { --pc: var(--bronze); }
.tn-slot__btn {
  width: 100%; min-height: 88px;
  display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: stretch;
  padding: 0; text-align: left; cursor: pointer;
  color: var(--white); background: var(--ink);
  border: 3px solid var(--ink-4);
  transition: border-color .15s, translate .15s, box-shadow .15s;
}
.tn-slot__btn:hover { border-color: var(--mint-2); }
.tn-slot__btn[aria-pressed="true"] { border-color: var(--green); box-shadow: 6px 6px 0 var(--green-deep); translate: -2px -2px; }
.tn-slot__btn:focus-visible { outline-offset: 3px; }
.tn-slot__place {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink); background: var(--pc);
  font: 900 calc(32px * var(--ds)) / .8 var(--f-display); text-transform: uppercase;
}
.tn-slot__place small { font: 800 11px/1 var(--f-num); letter-spacing: .12em; }
.tn-slot__body { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 50px 10px 14px; }
.tn-slot__body .emb { --es: 48px; }
.tn-slot__id { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tn-slot__name { font: 800 22px/1.05 var(--f-num); color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-slot__now { font: 700 12.5px/1.2 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-slot__now .up { color: var(--green); }
.tn-slot__empty { font: 800 15px/1.2 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-3); }
.tn-slot__btn[aria-pressed="true"] .tn-slot__empty { color: var(--green); }
.tn-slot__btn[aria-pressed="true"] .tn-slot__empty::after { content: ' ◂'; letter-spacing: 0; }
.tn-slot__x {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--mint-2); background: var(--ink-2); border: 2px solid var(--ink-4); cursor: pointer;
}
.tn-slot__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.tn-slot__x:hover { color: var(--ink); background: var(--red-2); border-color: var(--red-2); }
.tn-slot.is-filled .tn-slot__btn { border-color: var(--ink-4); }
.tn-slot.is-filled .tn-slot__btn[aria-pressed="true"] { border-color: var(--green); }
.tn-slot.is-pop .tn-slot__body { animation: tnPop .45s var(--ease-pop) both; }
@keyframes tnPop { from { transform: scale(.9); opacity: .3; } to { transform: none; opacity: 1; } }

.tn-pk__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tn-pk__actions .btn { flex: 1 1 auto; }
.tn-pk__lock.is-ready { animation: tnReady 1.6s ease-in-out infinite; }
@keyframes tnReady { 0%, 100% { box-shadow: 6px 6px 0 var(--ink); } 50% { box-shadow: 6px 6px 0 var(--ink), 0 0 0 6px rgba(18, 230, 128, .35); } }
.tn-pk__msg { min-height: 1.5em; font: 700 13px/1.5 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-2); }
.tn-pk__msg.is-warn { color: var(--gold); }
.tn-pk__mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; background: var(--ink); border: 2px dashed var(--green); font: 700 13px/1.4 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.tn-pk__mine a { color: var(--green); text-underline-offset: 3px; }
.tn-pk__note { font: 500 13px/1.6 var(--f-body); color: var(--mint-3); }

/* buscador + lista del top 50 */
.tn-picker { position: relative; min-width: 0; display: flex; flex-direction: column; }
.tn-picker::after { content: ''; position: absolute; left: 0; right: 12px; bottom: 0; height: 44px; background: linear-gradient(180deg, transparent, var(--ink-2)); pointer-events: none; transition: opacity .2s; }
.tn-picker.at-end::after { opacity: 0; }
.tn-picker__head { padding: 20px 22px 16px; background: var(--ink); border-bottom: 3px solid var(--ink-3); }
.tn-picker__h { font: 800 15px/1.2 var(--f-num); letter-spacing: .22em; text-transform: uppercase; color: var(--mint-2); }
.tn-picker__h b { color: var(--green); }
.tn-search { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 0 14px; background: var(--ink-2); border: 3px solid var(--green); }
.tn-search:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.tn-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: square; }
.tn-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0;
  font: 600 16px/1 var(--f-body); color: var(--white); background: transparent; border: 0;
}
.tn-search input::placeholder { color: var(--mint-3); }
.tn-search input:focus { outline: none; }
.tn-search input::-webkit-search-cancel-button { filter: invert(1) hue-rotate(90deg); }
.tn-opts { position: relative; list-style: none; margin: 0; padding: 6px 8px 8px; max-height: 486px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--ink-4) var(--ink-2); }
.tn-opt {
  width: 100%;
  display: grid; grid-template-columns: 40px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 12px 5px 8px;
  text-align: left; cursor: pointer;
  color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--ink-3);
}
.tn-opt:hover { background: #10251A; }
.tn-opt:hover .tn-opt__name { color: var(--green); }
.tn-opt:focus-visible { outline-offset: -4px; }
.tn-opt__rank { font: 900 18px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--mint-2); text-align: center; }
.tn-opt__id { min-width: 0; display: flex; align-items: center; gap: 8px; }
.tn-opt__name { min-width: 0; font: 800 18px/1.15 var(--f-num); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-opt__tag { flex: none; padding: 3px 6px 2px; font: 800 10.5px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--pc, var(--green)); }
.tn-opt__pnl { font: 800 16px/1 var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tn-opt.is-picked { background: rgba(18, 230, 128, .07); }
.tn-opts__empty { padding: 22px; font: 700 14px/1.5 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-3); }
.tn-opts .tn-loading { padding: 18px 12px; }

/* pick compartido: tarjeta + «pick vs the board» */
.tn-shared { margin-top: 30px; }
.tn-call {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 30px;
  padding: 26px 28px 26px;
  background: var(--purple); border: 3px solid var(--mint); box-shadow: 10px 10px 0 var(--green);
}
.tn-call__shapes { position: absolute; inset: 0; pointer-events: none; }
.tn-call__shapes .a { position: absolute; width: 380px; height: 380px; border-radius: 50%; left: -150px; top: -230px; background: var(--purple-deep); }
.tn-call__shapes .b { position: absolute; right: 0; top: 0; width: 30%; height: 100%; background: var(--green-deep); clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
.tn-call__copy, .tn-call__score { position: relative; z-index: 1; min-width: 0; }
.tn-call .kicker { display: inline-block; padding: 7px 10px 6px; color: var(--green); background: var(--ink); }
.tn-call__h {
  margin-top: 16px;
  font: 900 calc(clamp(40px, 5vw, 80px) * var(--ds)) / .84 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em; color: var(--white);
  text-shadow: 5px 6px 0 var(--ink);
  transform: skew(-7deg); transform-origin: left bottom;
  overflow-wrap: anywhere;
}
.tn-call__h em { font-style: normal; color: var(--green); }
.tn-call__sub { display: table; margin-top: 18px; padding: 9px 12px 8px; font: 600 15px/1.5 var(--f-body); color: var(--white); background: var(--ink); }
.tn-call__score { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 14px 18px 14px; background: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(7, 18, 12, .5); }
.tn-call__pts { display: flex; align-items: baseline; gap: 4px; }
.tn-call__pts b { font: 900 clamp(64px, 6.4vw, 96px) / .8 var(--f-num); font-variant-numeric: tabular-nums; color: var(--green); text-shadow: 0 0 26px rgba(18, 230, 128, .5); }
.tn-call__pts small { font: 900 30px/1 var(--f-num); color: var(--mint-2); }
.tn-call__lbl { font: 800 12.5px/1.2 var(--f-num); letter-spacing: .22em; text-transform: uppercase; color: var(--mint-2); text-align: right; }

.tn-vs { margin-top: 26px; background: var(--ink-2); border: 3px solid var(--mint); box-shadow: 10px 10px 0 var(--green-deep); }
.tn-vs__head, .tn-vs__r { display: grid; grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1fr) 150px; align-items: center; column-gap: 18px; padding: 0 22px 0 0; }
.tn-vs__head { height: 46px; background: var(--ink); border-bottom: 3px solid var(--mint); font: 800 12px/1 var(--f-num); letter-spacing: .28em; text-transform: uppercase; color: var(--mint-2); }
.tn-vs__head span:first-child { text-align: center; }
.tn-vs__body { list-style: none; margin: 0; padding: 0; }
.tn-vs__r { --pc: var(--gold); min-height: 92px; border-bottom: 1px solid var(--ink-3); }
.tn-vs__r:last-child { border-bottom: 0; }
.tn-vs__r--2 { --pc: var(--silver); }
.tn-vs__r--3 { --pc: var(--bronze); }
.tn-vs__place { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); background: var(--pc); font: 900 calc(34px * var(--ds)) / .8 var(--f-display); text-transform: uppercase; }
.tn-vs__place small { font: 800 11px/1 var(--f-num); letter-spacing: .12em; }
.tn-vs__pick { min-width: 0; }
.tn-vs__pick .sq__name { font-size: 22px; }
.tn-vs__out { font: 700 13px/1.4 var(--f-num); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-3); }
.tn-vs__now { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tn-vs__nowrank { font: 900 26px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--white); }
.tn-vs__nowrank small { margin-left: 6px; font: 700 12px/1 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--mint-3); }
.tn-vs__holder { font: 700 12.5px/1.3 var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--mint-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-vs__holder b { color: var(--white); letter-spacing: .04em; }
.tn-vs__pts { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.tn-vs__pts b { font: 900 34px/1 var(--f-num); font-variant-numeric: tabular-nums; }
.tn-vs__pts span { padding: 4px 7px 3px; font: 800 11px/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.tn-vs__r.k-exact .tn-vs__pts b { color: var(--green); }
.tn-vs__r.k-exact .tn-vs__pts span { color: var(--ink); background: var(--green); }
.tn-vs__r.k-podium .tn-vs__pts b { color: var(--yellow); }
.tn-vs__r.k-podium .tn-vs__pts span { color: var(--ink); background: var(--yellow); }
.tn-vs__r.k-off .tn-vs__pts b, .tn-vs__r.k-out .tn-vs__pts b, .tn-vs__r.k-wait .tn-vs__pts b { color: var(--mint-3); }
.tn-vs__r.k-off .tn-vs__pts span, .tn-vs__r.k-out .tn-vs__pts span { color: var(--mint-2); border: 2px solid var(--ink-4); }
.tn-vs__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 22px; background: var(--ink); border-top: 3px solid var(--ink-3); font: 600 13px/1.5 var(--f-body); color: var(--mint-2); }

.tn-share { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.tn-share .btn .ico { font-size: 18px; }
.tn-share__x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.tn-bad { margin-top: 30px; padding: 26px 26px 24px; background: var(--ink-2); border: 3px dashed var(--red-2); }
.tn-bad .h3 { color: var(--white); }
.tn-bad p { margin-top: 12px; max-width: 640px; color: var(--mint-2); }
.tn-bad .btn-row { margin-top: 20px; }

/* =====================================================================
   RULES · fechas + tarjetas + avisos
   ===================================================================== */
.tn-tl { position: relative; margin-top: 4px; padding-top: 44px; }
.tn-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tn-dates__rail { position: absolute; left: 0; right: 0; top: 57px; height: 6px; background: var(--ink-3); }
.tn-dates__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); box-shadow: 0 0 12px rgba(18, 230, 128, .5); }
.tn-dates__now {
  position: absolute; left: 0; bottom: calc(100% + 12px); translate: -50% 0;
  padding: 6px 8px 5px; white-space: nowrap;
  font: 800 11.5px/1 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--yellow);
}
.tn-dates__now::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--yellow); }
.tn-date { position: relative; min-width: 0; padding: 44px 18px 0 0; }
.tn-date__dot { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; background: var(--ink-3); border: 4px solid var(--ink); clip-path: var(--hex); }
.tn-date.is-past .tn-date__dot, .tn-date.is-now .tn-date__dot { background: var(--green); }
.tn-date__when { display: block; font: 900 21px/1.05 var(--f-num); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--white); }
.tn-date__when small { display: block; margin-top: 3px; font: 800 12px/1 var(--f-num); letter-spacing: .2em; color: var(--mint-2); }
.tn-date__what { display: block; margin-top: 10px; font: 800 14px/1.25 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.tn-date__txt { display: block; margin-top: 6px; font: 500 14px/1.55 var(--f-body); color: var(--mint-2); }
.tn-date.is-next .tn-date__what { color: var(--yellow); }
.tn-date__pill { display: none; width: fit-content; margin-top: 9px; padding: 5px 8px 4px; font: 800 11.5px/1.1 var(--f-num); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--yellow); }

.tn-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.tn-rule { --rc: var(--green); min-width: 0; padding: 22px 22px 22px; background: var(--ink-2); border: 3px solid var(--ink-4); border-top: 6px solid var(--rc); box-shadow: 8px 8px 0 var(--ink-3); }
.tn-rule--gold { --rc: var(--gold); }
.tn-rule--purple { --rc: var(--purple-2); }
.tn-rule--red { --rc: var(--red-2); }
.tn-rule--yellow { --rc: var(--yellow); }
.tn-rule__n { font: 800 12px/1 var(--f-num); letter-spacing: .3em; text-transform: uppercase; color: var(--rc); }
.tn-rule .h3 { margin-top: 10px; font-size: calc(clamp(26px, 2.2vw, 34px) * var(--ds)); }
.tn-rule ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tn-rule li { position: relative; padding-left: 20px; font: 500 15px/1.55 var(--f-body); color: var(--mint); }
.tn-rule li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 10px; background: var(--rc); clip-path: var(--hex); }
.tn-rule li b { color: var(--white); font-weight: 600; }
.tn-prizes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tn-prizes li { padding: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: var(--ink); border: 1px solid var(--ink-3); }
.tn-prizes li::before { display: none; }
.tn-prizes .medal { width: 34px; height: 38px; font-size: 20px; }
.tn-prizes__lbl { font: 800 14px/1 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-2); }
.tn-prizes b { font: 900 24px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--white); }
.tn-rule__after { margin-top: 14px; }

.tn-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tn-notice { min-width: 0; padding: 20px 22px 20px; background: rgba(255, 200, 61, .05); border: 3px dashed var(--gold); }
.tn-notice--evm { border-color: var(--purple-2); background: rgba(148, 107, 255, .07); }
.tn-notice h3 { font: 800 15px/1.25 var(--f-num); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tn-notice--evm h3 { color: var(--purple-2); }
.tn-notice p { margin-top: 10px; font: 500 15px/1.6 var(--f-body); color: var(--mint); }
.tn-notice p.tn-notice__stamp { font: 700 12.5px/1.5 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--mint-3); }
.tn-notice b { color: var(--white); font-weight: 600; }
.tn-notice a { color: var(--green); text-underline-offset: 3px; }
.tn-notice .chain { margin: 2px 2px 0 0; }
.tn-rules__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1279px) {
  .tn-hero__in { grid-template-columns: minmax(0, 1fr) 300px; }
  .tn-trophy { transform: scale(.88); transform-origin: 50% 100%; }
  .tn-top { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .tn-storm { order: -1; }
  .tn-storm .crtp__screen { min-height: 0; }
  .tn-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-vs__head, .tn-vs__r { grid-template-columns: 86px minmax(0, 1.2fr) minmax(0, 1fr) 130px; }
}

@media (max-width: 1023px) {
  .tn-meta { align-items: flex-start; text-align: left; }
  .tn-hero__in { grid-template-columns: minmax(0, 1fr); }
  .tn-hero__art { display: none; }
  .tn-pk { grid-template-columns: minmax(0, 1fr); }
  .tn-pk__side { border-right: 0; border-bottom: 3px solid var(--ink-3); }
  .tn-opts { max-height: 420px; }
  .tn-tl { padding: 0 0 0 44px; }
  .tn-dates { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tn-dates__rail { left: 9px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .tn-dates__fill { right: 0; bottom: auto; width: auto; height: 0; }
  .tn-dates__now { left: 22px; bottom: auto; top: 0; translate: 0 -50%; }
  .tn-dates__now::after { left: auto; right: 100%; top: 50%; margin: -6px 0 0; border-top-color: transparent; border-right-color: var(--yellow); }
  .tn-date { padding: 0 0 0 4px; }
  .tn-date__dot { left: -44px; top: 0; }
  .tn-dates__now { display: none !important; }
  .tn-date.is-now .tn-date__pill { display: block; }
  .tn-date.is-now .tn-date__dot { background: var(--yellow); }
  .tn-notes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .tn-hero { padding: 36px 0 40px; }
  .tn-chips { gap: 8px; }
  .tn-chips .chip { font-size: 12px; letter-spacing: .12em; padding: 8px 10px 7px; }
  .tn-tabsbar { padding-top: 22px; }
  .tn-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tn-tab { padding: 14px 6px 12px; font-size: 13px; letter-spacing: .12em; gap: 6px; }
  .tn-tab__n, .tn-tab__x { display: none; }
  .tn-view { padding: 34px 0 56px; }

  .tn-podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tn-pod, .tn-pod--1, .tn-pod--2, .tn-pod--3 { order: 0; flex-direction: row; align-items: stretch; }
  .tn-pod__step { order: -1; flex: none; width: 76px; height: auto; justify-content: center; padding: 10px 0; box-shadow: 5px 5px 0 var(--ink); border-right: 0; }
  .tn-pod__rank, .tn-pod--1 .tn-pod__rank { font-size: calc(46px * var(--ds)); }
  .tn-pod__prize, .tn-pod--3 .tn-pod__prize { font-size: 15px; }
  .tn-pod__card, .tn-pod--1 .tn-pod__card {
    flex: 1; min-width: 0;
    display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "emb name" "emb meta" "pnl pnl" "coin coin";
    align-items: center; justify-items: start; gap: 6px 12px;
    padding: 12px 12px 12px 14px; text-align: left;
    border: 3px solid var(--pc); border-left: 0;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .tn-pod__card .rar { display: none; }
  .tn-pod__card .emb, .tn-pod--1 .tn-pod__card .emb { grid-area: emb; --es: 50px; }
  .tn-pod__name { grid-area: name; font-size: calc(26px * var(--ds)); transform-origin: left bottom; }
  .tn-pod__meta { grid-area: meta; justify-content: flex-start; }
  .tn-pod__pnl { grid-area: pnl; }
  .tn-pod__card .pnl { align-items: flex-start; }
  .tn-pod .pnl__split { justify-content: flex-start; }
  .tn-pod .pnl__v { font-size: 24px; }
  .tn-pod__coin { grid-area: coin; justify-content: flex-start; min-height: 0; }
  html.tn-anim:not(.sin-movimiento) .tn-podium:not(.is-in) .tn-pod__step { transform: scaleX(.06); }
  @keyframes tnStep { from { transform: scaleX(.06); } to { transform: none; } }
  .tn-pod__step { transform-origin: 0 50%; }

  .tn-storm__in { gap: 12px; padding: 20px 10px 18px; }
  .tn-clock__u b { font-size: 50px; }
  .tn-clock__u span { font-size: 10.5px; letter-spacing: .22em; }
  .tn-clock i { font-size: 34px; }
  .tn-zone { width: 100%; }
  .tn-storm__foot { font-size: 11.5px; letter-spacing: .14em; }

  .tn-fee { margin-top: 54px; }
  .tn-fee__box { box-shadow: 7px 7px 0 var(--purple); }
  .tn-fee__band { padding: 18px 16px 16px; }
  .tn-fee__lead { font-size: 13.5px; letter-spacing: .12em; }
  .tn-fee__vault { width: 100%; min-width: 0; }
  .tn-fee__vault b { font-size: 28px; }

  .tn-board { margin-top: 56px; }
  .tn-board__cols { grid-template-columns: minmax(0, 1fr); }
  .tn-mini { box-shadow: 6px 6px 0 var(--green-deep); }
  .tn-mini--b { margin-top: -3px; }
  .tn-board__cols:not(.is-open) .tn-mini--b { display: none; }
  .tn-board__more { display: flex; width: 100%; margin-top: 18px; }
  .tn-mini__a { grid-template-columns: 30px 36px 28px minmax(0, 1fr) auto; gap: 8px; padding: 7px 10px 6px 12px; min-height: 48px; }
  .tn-mini__a .emb { --es: 26px; }
  .tn-mini__rank { font-size: 18px; }
  .tn-mini__name { font-size: 16px; }
  .tn-mini__pnl { font-size: 15px; }

  .tn-contest { padding: 13px 14px 12px; }
  .tn-contest__big { font-size: 19px; }
  .tn-pk { box-shadow: 7px 7px 0 var(--purple); }
  .tn-pk__side { padding: 16px 14px 18px; }
  .tn-slot__btn { grid-template-columns: 58px minmax(0, 1fr); min-height: 76px; }
  .tn-slot__place { font-size: calc(26px * var(--ds)); }
  .tn-slot__body { padding: 8px 46px 8px 10px; gap: 10px; }
  .tn-slot__body .emb { --es: 40px; }
  .tn-slot__name { font-size: 19px; }
  .tn-slot__now { font-size: 11px; letter-spacing: .1em; }
  .tn-picker__head { padding: 16px 14px 14px; }
  .tn-picker__h { font-size: 13px; letter-spacing: .16em; }
  .tn-opts { padding: 4px 4px 6px; max-height: 380px; }
  .tn-opt { grid-template-columns: 30px 26px minmax(0, 1fr) auto; gap: 8px; padding: 6px 6px 5px 2px; }
  .tn-opt .emb { --es: 26px; }
  .tn-opt__rank { font-size: 15px; }
  .tn-opt__name { font-size: 16px; }
  .tn-opt__pnl { font-size: 14px; }

  .tn-call { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 20px; box-shadow: 7px 7px 0 var(--green); }
  .tn-call__shapes .b { width: 46%; height: 40%; top: auto; bottom: 0; }
  .tn-call__sub { font-size: 14px; }
  .tn-call__score { flex-direction: row; align-items: center; justify-content: space-between; }
  .tn-call__lbl { text-align: left; }
  .tn-call__pts b { font-size: 60px; }
  .tn-vs { box-shadow: 7px 7px 0 var(--green-deep); }
  .tn-vs__head { display: none; }
  .tn-vs__r {
    grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "place pick pts" "place now pts";
    row-gap: 8px; column-gap: 12px; padding: 0 12px 0 0; min-height: 0;
  }
  .tn-vs__place { grid-area: place; padding: 12px 0; font-size: calc(26px * var(--ds)); }
  .tn-vs__pick { grid-area: pick; padding-top: 12px; }
  .tn-vs__pick .sq { gap: 10px; }
  .tn-vs__pick .emb { --es: 32px; }
  .tn-vs__pick .sq__name { font-size: 18px; }
  .tn-vs__now { grid-area: now; padding-bottom: 12px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .tn-vs__nowrank { font-size: 19px; }
  .tn-vs__pts { grid-area: pts; }
  .tn-vs__pts b { font-size: 28px; }
  .tn-vs__foot { padding: 10px 12px; }
  .tn-share { flex-direction: column; }
  .tn-share .btn { width: 100%; }

  .tn-rules { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 44px; }
  .tn-rule { padding: 18px 16px 18px; box-shadow: 6px 6px 0 var(--ink-3); }
  .tn-rule li { font-size: 14.5px; }
  .tn-notice { padding: 16px 14px; }
  .tn-notice p { font-size: 14.5px; }
  .tn-rules__links .btn { width: 100%; }
}

@media (max-width: 380px) {
  .tn-clock__u b { font-size: 42px; }
  .tn-clock i { font-size: 28px; }
  .tn-tab { font-size: 12px; letter-spacing: .08em; }
  .tn-mini__a { grid-template-columns: 26px 32px 24px minmax(0, 1fr) auto; gap: 6px; }
  .tn-mini__a .emb { --es: 22px; }
}
.tn-contest__txt .nowrap-r { white-space: nowrap; }
