/* =========================================================
   7RISE — INÍCIO v2 (menu_hub.js) + LOJA (menu_shop.js) + RESUMO DA SEMANA
   Mesmo tema pixel (theme-pixel.css): contorno escuro, sombra dura,
   fonte Tiny5 nos títulos/números.
   ========================================================= */

/* negrito/itálico a meio de uma frase herdam o tamanho da frase: o "* { font-size }"
   global (11 px; 9 px em telemóveis ≤380 px) encolhia nomes nas manchetes e avisos.
   (:where = especificidade 0 → qualquer regra com classe continua a mandar) */
:where(b, strong, em, u, s, mark, span):where(:not([class])) { font-size: inherit; font-family: inherit; }

#home-screen.is-hub { padding-top: 8px !important; }
.hub2 { display: flex; flex-direction: column; gap: 10px; }

/* ---------- faixa do adjunto ---------- */
.hub-ticker {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 5px 5px 6px;
  color: #fbf8ea; background: var(--px-ink); border: 2px solid rgba(240,185,58,.7); border-radius: 10px;
  box-shadow: 0 3px 0 #050f09;
}
.hub-ticker-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px;
  font-family: var(--font-head); font-size: 10px; letter-spacing: .5px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe17a, #f0b93a); border-radius: 6px;
}
.hub-ticker-text {
  flex: 1; min-width: 0; font-size: 12px; line-height: 1.25; color: #fbf8ea !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-ticker-text.is-in { animation: tickerIn .35s ease both; }
@keyframes tickerIn { from { opacity: 0; transform: translateY(6px); } }
.hub-ticker-cta {
  flex-shrink: 0; padding: 6px 9px; font-family: var(--font-head); font-size: 11px; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #3fb257, #23843a); border: 2px solid #050f09; border-radius: 7px; box-shadow: 0 2px 0 #050f09;
}

/* ---------- centro de treino ---------- */
.tg {
  position: relative; height: 336px; overflow: hidden; user-select: none;
  border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.tg-pitch {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 44px, rgba(0,0,0,.03) 44px 88px),
    url('images/field/pitch-turf-1.png') 0 0 / 90px 43px repeat, #3c8a37;
  image-rendering: pixelated;
}
.tg-pitch::after { content: ""; position: absolute; inset: 10px 8px 40px; border: 2px solid rgba(255,255,255,.55); border-radius: 2px; }
.tg-line--mid { position: absolute; left: 50%; top: 10px; bottom: 40px; width: 2px; margin-left: -1px; background: rgba(255,255,255,.55); }
.tg-circle { position: absolute; left: 50%; top: calc(50% - 15px); width: 74px; height: 74px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.55); border-radius: 50%; }
.tg-box { position: absolute; top: calc(50% - 15px); width: 34px; height: 104px; transform: translateY(-50%); border: 2px solid rgba(255,255,255,.55); }
.tg-box--l { left: 8px; border-left: 0; }
.tg-box--r { right: 8px; border-right: 0; }
.tg-cone {
  position: absolute; width: 10px; height: 11px; transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ffb347 0 45%, #fff 45% 60%, #f9811f 60%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25));
}
.tg-bench {
  display: none;
  position: absolute; left: 17%; right: 17%; bottom: 4px; height: 30px; font-style: normal;
  background: repeating-linear-gradient(90deg, #6b4a2b 0 14px, #5a3d22 14px 16px); border: 2px solid var(--px-ink); border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.tg-bench span {
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%); white-space: nowrap; padding: 0 5px;
  font-family: var(--font-head); font-size: 8px; letter-spacing: .5px; color: var(--px-ink); background: #f1edd8; border: 1px solid var(--px-ink); border-radius: 3px;
}
.tg-top { position: absolute; top: 7px; left: 7px; right: 7px; z-index: 900; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.tg-title, .tg-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  font-family: var(--font-head); font-size: 12px; color: #fff; text-shadow: 0 1px 0 var(--px-ink);
  background: rgba(16,37,26,.82); border: 2px solid var(--px-ink); border-radius: 7px;
}
.tg-title .px-icon rect, .tg-chip .px-icon rect { fill: #ffe17a; }
.tg-chip em { font-style: normal; color: #ffb4a8; }
.tg-players { position: absolute; inset: 0; z-index: 1; }
.tg-empty { position: absolute; left: 68px; right: 68px; top: 50%; transform: translateY(-56%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tg-empty-art { display: flex; animation: tgChest 1.8s ease-in-out infinite; }
.tg-empty-art > * { filter: drop-shadow(0 4px 0 rgba(5,15,9,.45)); }
@keyframes tgChest { 50% { transform: translateY(-5px) rotate(-2deg); } }
.tg-empty-text { padding: 5px 8px; font-size: 12px; line-height: 1.3; color: #fff; text-shadow: 0 1px 0 #000; background: rgba(16,37,26,.75); border-radius: 8px; }
.tg-empty-cta { padding: 8px 18px; cursor: pointer; font-family: var(--font-head); font-size: 15px; letter-spacing: .5px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink); border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--px-ink); animation: tgBadge 1.8s ease-in-out infinite; }
.tg-empty-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--px-ink); animation: none; }

.tg-p {
  position: absolute; left: 0; top: 0; width: 56px; height: 76px; margin: -60px 0 0 -28px; padding: 0;
  background: none; border: 0; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent;
}
.tg-p:active .tg-sprite { transform: scale(.94); }
.tg-shadow { position: absolute; left: 50%; top: 42px; width: 26px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.28); }
.kit-sprite.tg-sprite { width: 56px; position: absolute; left: 0; top: 0; overflow: visible; }
.tg-p.is-left .tg-sprite .kit-sprite-inner { transform: scaleX(-1); }
.tg-g { display: none; } .tg-p.is-gk .tg-o { display: none; } .tg-p.is-gk .tg-g { display: block; }
.tg-l { position: absolute; inset: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: calc(var(--n, 5) * 100%) 100%; mask-size: calc(var(--n, 5) * 100%) 100%; -webkit-mask-position: var(--fp, 0%) 0; mask-position: var(--fp, 0%) 0; -webkit-mask-image: var(--idle); mask-image: var(--idle); }
.tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-repeat: no-repeat; background-size: calc(var(--n, 5) * 100%) 100%; background-position: var(--fp, 0%) 0; background-image: var(--idle); }
.tg-g .tg-l { -webkit-mask-image: var(--gidle); mask-image: var(--gidle); } .tg-g .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--gidle); }
.tg-l--ball { display: none; }
.tg-p[data-a="idle"] .tg-l { -webkit-mask-image: var(--idle); mask-image: var(--idle); } .tg-p[data-a="idle"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--idle); }
.tg-p[data-a="run"] .tg-l { -webkit-mask-image: var(--run); mask-image: var(--run); } .tg-p[data-a="run"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--run); }
.tg-p[data-a="idleb"] .tg-l { -webkit-mask-image: var(--idleb); mask-image: var(--idleb); } .tg-p[data-a="idleb"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--idleb); }
.tg-p[data-a="runb"] .tg-l { -webkit-mask-image: var(--runb); mask-image: var(--runb); } .tg-p[data-a="runb"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--runb); }
.tg-p[data-a="pass"] .tg-l { -webkit-mask-image: var(--pass); mask-image: var(--pass); } .tg-p[data-a="pass"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--pass); }
.tg-p[data-a="shoot"] .tg-l { -webkit-mask-image: var(--shoot); mask-image: var(--shoot); } .tg-p[data-a="shoot"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--shoot); }
.tg-p[data-a="cele"] .tg-l { -webkit-mask-image: var(--cele); mask-image: var(--cele); } .tg-p[data-a="cele"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--cele); }
.tg-p[data-a="gidle"] .tg-l { -webkit-mask-image: var(--gidle); mask-image: var(--gidle); } .tg-p[data-a="gidle"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--gidle); }
.tg-p[data-a="gset"] .tg-l { -webkit-mask-image: var(--gset); mask-image: var(--gset); } .tg-p[data-a="gset"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--gset); }
.tg-p[data-a="gdive"] .tg-l { -webkit-mask-image: var(--gdive); mask-image: var(--gdive); } .tg-p[data-a="gdive"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--gdive); }
.tg-p[data-a="ghold"] .tg-l { -webkit-mask-image: var(--ghold); mask-image: var(--ghold); } .tg-p[data-a="ghold"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--ghold); }
.tg-p[data-a="jug"] .tg-l { -webkit-mask-image: var(--jug); mask-image: var(--jug); } .tg-p[data-a="jug"] .tg-l.tg-l--img { -webkit-mask-image: none; mask-image: none; background-image: var(--jug); }
.tg-p[data-a="idleb"] .tg-l--ball, .tg-p[data-a="runb"] .tg-l--ball, .tg-p[data-a="pass"] .tg-l--ball, .tg-p[data-a="shoot"] .tg-l--ball, .tg-p[data-a="ghold"] .tg-l--ball, .tg-p[data-a="jug"] .tg-l--ball { display: block; }
.tg-p[data-a="gdive"] .tg-shadow, .tg-p[data-a="gdive"] .tg-tag, .tg-p[data-a="gdive"] .tg-fit { opacity: 0; transition: opacity .15s; }
.tg-p--rest .tg-sprite { filter: saturate(.75) brightness(.95); }
.tg-tag {
  position: absolute; left: 50%; top: 50px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px 1px 1px; white-space: nowrap;
  font-family: var(--font-head); font-size: 9px; line-height: 12px; color: #fff; background: rgba(16,37,26,.82); border-radius: 4px;
}
.tg-ovr { padding: 0 3px; border-radius: 3px; color: var(--px-ink); font-weight: 400; }
.tg-ovr--gold { background: #f0b93a; } .tg-ovr--silver { background: #d6dcde; } .tg-ovr--bronze { background: #d8a06a; }
.tg-fit { position: absolute; left: 50%; top: 65px; width: 32px; height: 5px; transform: translateX(-50%); background: rgba(0,0,0,.45); border: 1px solid var(--px-ink); }
.tg-fit i { display: block; height: 100%; }
.tg-fit--ok i { background: #4fd16b; } .tg-fit--mid i { background: #f0b93a; } .tg-fit--low i { background: #e5484d; }
.tg-zz { position: absolute; right: 4px; top: 4px; z-index: 3; font-family: var(--font-head); font-size: 11px; color: #fff; text-shadow: 0 1px 0 var(--px-ink); animation: tgZz 1.6s ease-in-out infinite; }
@keyframes tgZz { 50% { transform: translateY(-4px); opacity: .7; } }
.tg-zz:empty { display: none; }
.tg-p--rest .tg-zz:empty { display: block; } .tg-p--rest .tg-zz:empty::after { content: "Zz"; }
.tg-fball { position: absolute; left: 0; top: 0; width: 25px; height: 25px; display: none; pointer-events: none; background: url("images/field/ball.png") center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
.tg-goal { position: absolute; left: 0; top: 0; width: 29px; height: 82px; pointer-events: none; background: url("images/field/pitch-goal-left.png") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.18)); transform-origin: 30% 60%; }
.tg-goal.is-net { animation: tgNet .5s ease-out; }
@keyframes tgNet { 25% { transform: scaleX(.88) skewY(-3deg); } 60% { transform: scaleX(1.04) skewY(1deg); } }
.tg-prop { position: absolute; bottom: 9px; z-index: 0; transform: translateX(-50%); pointer-events: none; image-rendering: pixelated; }
.tg-prop--bottles { width: 20px; height: 14px; background: linear-gradient(90deg, #6ec1ff 0 4px, transparent 4px 8px, #6ec1ff 8px 12px, transparent 12px 16px, #6ec1ff 16px 20px) 0 4px / 20px 10px no-repeat, linear-gradient(90deg, #f1f5f9 0 4px, transparent 4px 8px, #f1f5f9 8px 12px, transparent 12px 16px, #f1f5f9 16px 20px) 0 0 / 20px 4px no-repeat; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.tg-prop--balls { width: 34px; height: 26px; background: url("images/field/ball.png") 0 8px / 24px 24px no-repeat, url("images/field/ball.png") 11px 8px / 24px 24px no-repeat, url("images/field/ball.png") 5px 0 / 24px 24px no-repeat; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }

/* botões flutuantes dos lados */
.tg-side { position: absolute; top: 46px; z-index: 950; display: flex; flex-direction: column; gap: 10px; }
.tg-side--l { left: 6px; } .tg-side--r { right: 6px; }
.tg-fab { position: relative; width: 54px; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; cursor: pointer; }
.tg-fab-ico {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fffbe8, #efe4bb); border: 3px solid var(--px-ink); border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(16,37,26,.15), 0 3px 0 var(--px-ink);
}
.tg-fab:active .tg-fab-ico { transform: translateY(2px); box-shadow: 0 1px 0 var(--px-ink); }
.tg-fab-label {
  max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px;
  font-family: var(--font-head); font-size: 9px; line-height: 12px; color: #fff; background: rgba(16,37,26,.85); border-radius: 4px;
}
.tg-fab-badge {
  position: absolute; top: -5px; right: -1px; min-width: 18px; height: 18px; padding: 0 4px; font-style: normal;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 11px; color: #fff;
  background: #e5484d; border: 2px solid var(--px-ink); border-radius: 9px; animation: tgBadge 1.8s ease-in-out infinite;
}
@keyframes tgBadge { 50% { transform: scale(1.12); } }

/* ---------- JOGAR: Liga + Amigável ---------- */
.hub-play { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-card {
  position: relative; min-width: 0; min-height: 184px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 8px 10px; text-align: center; color: #fff; cursor: pointer; font: inherit;
  border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: inset 0 3px 0 rgba(255,255,255,.18), var(--px-shadow);
}
.hp-card--league { background: radial-gradient(ellipse at 50% 0%, #3a64a8 0%, #1d3a6e 55%, #142a52 100%); }
.hp-card--friendly { background: radial-gradient(ellipse at 50% 0%, #3c9a52 0%, #23753a 55%, #185a2b 100%); cursor: default; }
.hp-card--league:active { transform: translateY(2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.18), 0 2px 0 var(--px-ink); }
.hp-head { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 14px; letter-spacing: .5px; text-shadow: 0 2px 0 var(--px-ink); }
.hp-head small { font-size: 10px; opacity: .75; }
.hp-vs { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hp-vs b { font-family: var(--font-head); font-size: 14px; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.hp-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; opacity: .9; }
.hp-when { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-family: var(--font-head); font-size: 12px; background: rgba(0,0,0,.3); border-radius: 6px; }
.hp-when .px-icon rect { fill: #ffe17a; }
.hp-timer { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px 5px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,225,122,.55); border-radius: 8px; }
.hp-timer small { font-family: var(--font-head); font-size: 9px; letter-spacing: .5px; opacity: .8; }
.hp-timer b { font-family: var(--font-head); font-size: 17px; font-weight: 400; color: #ffe17a; letter-spacing: 1px; text-shadow: 0 2px 0 var(--px-ink); }
.hp-when.is-live { background: #d8433b; }
.hp-when.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tgBadge 1s infinite; }
.hp-cta {
  margin-top: auto; padding: 7px 16px; font-family: var(--font-head); font-size: 13px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe17a, #f0b93a); border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 3px 0 var(--px-ink);
}
.hp-energy { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hp-energy .hub-pips i { width: 10px; height: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--px-ink); }
.hp-energy .hub-pips i.on { background: #ffe17a; }
.hp-energy small { font-family: var(--font-head); font-size: 10px; opacity: .8; }
.hp-prize { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-family: var(--font-head); font-size: 13px; background: rgba(0,0,0,.28); border-radius: 6px; }
.hp-prize b { font-weight: 400; margin-right: 4px; }
.hp-play {
  width: 100%; margin-top: auto; padding: 9px 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-head); font-size: 18px; letter-spacing: 1px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink); border-radius: 10px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--px-ink);
}
.hp-play span { display: inline-flex; align-items: center; font-size: 12px; padding: 1px 5px; background: rgba(16,37,26,.15); border-radius: 5px; }
.hp-play:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 1px 0 var(--px-ink); }
.hp-play:disabled { filter: grayscale(.8); opacity: .8; font-size: 13px; }

.hp-form .md-form-dot { width: 18px; height: 18px; font-size: 10px; border-width: 2px; }
.hp-form .md-form-dot:last-child { outline-width: 2px; outline-offset: 1px; }

/* ---------- janela "À procura de adversário" ---------- */
.fs-pop { z-index: 5000; display: flex; align-items: center; justify-content: center; background: rgba(5,15,9,.72); }
.fs-box {
  width: min(320px, 86vw); padding: 22px 16px 16px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #3c9a52 0%, #1b5a2c 70%); border: 3px solid var(--px-ink); border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(240,185,58,.55), 0 6px 0 var(--px-ink);
}
.fs-ball { display: inline-flex; animation: fsBounce .9s cubic-bezier(.3,.6,.4,1) infinite alternate; }
@keyframes fsBounce { from { transform: translateY(0) rotate(0); } to { transform: translateY(-14px) rotate(25deg); } }
.fs-title { margin-top: 10px; font-family: var(--font-head); font-size: 17px; text-shadow: 0 2px 0 var(--px-ink); }
.fs-sub { margin-top: 4px; font-family: var(--font-head); font-size: 14px; color: #ffe17a; }
.fs-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 14px; }
.fs-dots i { width: 8px; height: 8px; background: #ffe17a; border: 2px solid var(--px-ink); animation: fsDot 1.2s infinite; }
.fs-dots i:nth-child(2) { animation-delay: .2s; } .fs-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes fsDot { 50% { transform: translateY(-6px); opacity: .5; } }
.fs-cancel {
  padding: 8px 22px; font-family: var(--font-head); font-size: 13px; color: var(--px-ink); cursor: pointer;
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 3px 0 var(--px-ink);
}

/* ---------- secções v2 (Plantel / Equipa técnica / Resultados) ---------- */
.sq2-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; padding: 8px;
  background: linear-gradient(180deg, #1d5a33, #123d22); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.sq2-summary:has(> span:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.sq2-summary span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; background: rgba(0,0,0,.25); border-radius: 8px; color: #fff; }
.sq2-summary b { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-head); font-size: 17px; font-weight: 400; text-shadow: 0 2px 0 var(--px-ink); }
.sq2-summary small { font-family: var(--font-head); font-size: 9px; letter-spacing: .3px; opacity: .8; }
.sq2-summary .is-low b { color: #ffb4a8; } .sq2-summary .is-w b { color: #8ff0a2; } .sq2-summary .is-l b { color: #ffb4a8; }
.sq2-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sq2-chips { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sq2-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; cursor: pointer;
  font-family: var(--font-head); font-size: 12px; color: var(--px-ink); background: var(--px-paper); border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 2px 0 var(--px-ink);
}
.sq2-chip i { font-style: normal; font-size: 10px; padding: 0 4px; background: rgba(16,37,26,.12); border-radius: 4px; }
.sq2-chip.on { background: linear-gradient(180deg, #ffe17a, #f0b93a); }
.sq2-scout {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; cursor: pointer;
  font-family: var(--font-head); font-size: 11px; color: #fff; background: linear-gradient(180deg, #3fb257, #23843a); border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 2px 0 var(--px-ink);
}
.sq2-scout .px-icon rect { fill: #fff; }
.sq2-list { display: flex; flex-direction: column; gap: 7px; }
.sq2-group { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 0; font-family: var(--font-head); font-size: 13px; color: var(--px-ink); }
.sq2-group i { font-style: normal; font-size: 11px; opacity: .6; }
.sq2-card {
  display: grid; grid-template-columns: 64px 1fr 84px; align-items: center; gap: 9px; padding: 7px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.sq2-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.sq2-card.is-listed { background: #f1ecd6; }
.sq2-portrait { position: relative; width: 64px; height: 64px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border: 2px solid var(--px-ink); border-radius: 10px; }
.sq2-portrait--gold { background: radial-gradient(circle at 50% 30%, #fff1b0, #f0b93a); }
.sq2-portrait--silver { background: radial-gradient(circle at 50% 30%, #ffffff, #b9c4c8); }
.sq2-portrait--bronze { background: radial-gradient(circle at 50% 30%, #ffe0c2, #d08d55); }
.sq2-portrait .kit-sprite--card { width: 62px; margin-bottom: -4px; }
.sq2-ovr { position: absolute; top: 2px; left: 2px; z-index: 2; padding: 0 4px; font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #fff; background: var(--px-ink); border-radius: 5px; }
.sq2-xi { position: absolute; bottom: 2px; right: 2px; z-index: 2; padding: 0 3px; font-style: normal; font-family: var(--font-head); font-size: 9px; color: var(--px-ink); background: #ffe17a; border: 1px solid var(--px-ink); border-radius: 3px; }
.sq2-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq2-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 14px; }
.sq2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 11px; opacity: .85; }
.sq2-pos { font-style: normal; padding: 0 4px; font-family: var(--font-head); font-size: 9px; color: #fff; background: #6b7c88; border-radius: 3px; }
.sq2-pos--DF { background: #3b6fd8; } .sq2-pos--MF { background: #2c9a4b; } .sq2-pos--FW { background: #d8433b; }
.sq2-body .fb-form-row { margin: 0; }
.sq2-side { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.sq2-fit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 8px; background: #eef7e8; border: 2px solid rgba(16,37,26,.2); }
.sq2-fit b { font-family: var(--font-head); font-size: 15px; font-weight: 400; line-height: 1; }
.sq2-fit small { font-size: 9px; opacity: .65; }
.sq2-fit-bar { width: 100%; height: 5px; background: rgba(16,37,26,.15); border-radius: 3px; overflow: hidden; }
.sq2-fit-bar i { display: block; height: 100%; }
.sq2-fit--ok b { color: #23843a; } .sq2-fit--ok .sq2-fit-bar i { background: #4fd16b; }
.sq2-fit--mid { background: #fff6dc; } .sq2-fit--mid b { color: #b07b00; } .sq2-fit--mid .sq2-fit-bar i { background: #f0b93a; }
.sq2-fit--low { background: #ffe9e6; } .sq2-fit--low b { color: #c4382f; } .sq2-fit--low .sq2-fit-bar i { background: #e5484d; }
.sq2-nums { display: flex; justify-content: space-between; }
.sq2-nums span { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-head); font-size: 10px; }
.sq2-empty { margin-top: 8px; width: 100%; padding: 10px; cursor: pointer; font-family: var(--font-head); font-size: 13px; color: var(--px-ink); background: transparent; border: 3px dashed rgba(16,37,26,.35); border-radius: 12px; }

.sf-sub { margin: -2px 2px 8px; font-size: 11px; color: var(--px-ink); opacity: .75; }
.sf-list { display: flex; flex-direction: column; gap: 7px; }
.sf-row {
  display: grid; grid-template-columns: 56px 1fr 92px; align-items: center; gap: 9px; padding: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: #f3efdc; border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.sf-row:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.sf-row.is-active { background: var(--px-paper); }
.sf-row:not(.is-active) .sf-ico { filter: grayscale(.85); opacity: .75; }
.sf-row.is-ending { background: #fff3e0; }
.sf-ico { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #fffbe8, #e8dcb0); border: 2px solid var(--px-ink); border-radius: 10px; }
.sf-row.is-active .sf-ico { background: radial-gradient(circle at 50% 35%, #fff1b0, #f0b93a); }
.sf-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sf-body b { font-family: var(--font-head); font-size: 14px; font-weight: 400; }
.sf-body small { font-size: 11px; line-height: 1.25; opacity: .8; }
.sf-side { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.sf-left, .sf-price { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-family: var(--font-head); font-size: 12px; }
.sf-row.is-ending .sf-left { color: #c4382f; }
.sf-cta { padding: 5px 4px; font-family: var(--font-head); font-size: 11px; border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 2px 0 var(--px-ink); }
.sf-cta--hire { color: #fff; background: linear-gradient(180deg, #3fb257, #23843a); }
.sf-cta--ok { color: var(--px-ink); background: #e8e2c8; }
.sf-cta--warn { color: var(--px-ink); background: linear-gradient(180deg, #ffe17a, #f0b93a); }
.sf-person { display: inline-flex; align-items: center; gap: 4px; min-width: 0; opacity: 1 !important; font-weight: 700; }
.sf-person span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-person .fb-flag { width: 16px; height: 12px; flex-shrink: 0; }
.sf-rep { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 2px 8px; padding: 7px 9px; font-size: 11px; color: var(--px-ink); background: var(--px-paper); border: 2px solid var(--px-ink); border-radius: 8px; }
.sf-rep span:first-child { font-family: var(--font-head); }
.sf-rep small { flex-basis: 100%; font-size: 10px; color: rgba(16,37,26,.65); }

.rs2-list { display: flex; flex-direction: column; gap: 7px; }
.rs2-row {
  --rs: #8a96a0;
  display: grid; grid-template-columns: 50px 1fr 46px; align-items: stretch; gap: 9px; padding: 7px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.rs2-row--w { --rs: #2c9a4b; } .rs2-row--l { --rs: #d8433b; }
.rs2-row:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.rs2-res { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--rs); border: 2px solid var(--px-ink); border-radius: 9px; color: #fff; }
.rs2-res b { font-family: var(--font-head); font-size: 20px; font-weight: 400; text-shadow: 0 2px 0 var(--px-ink); }
.rs2-res small { font-size: 9px; opacity: .9; }
.rs2-teams { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.rs2-team { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; font-weight: 700; }
.rs2-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs2-team:first-child { color: #1f6b33; }
.rs2-crest { flex-shrink: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--px-ink); overflow: hidden; font-size: 9px; }
.rs2-crest > span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.rs2-crest .crest-img { width: 100%; height: 100%; object-fit: contain; }
.rs2-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.rs2-tag { display: inline-flex; align-items: center; gap: 2px; padding: 0 5px; font-style: normal; font-family: var(--font-head); font-size: 9px; background: #e8e2c8; border-radius: 4px; }
.rs2-tag--league { background: #dbe6ff; } .rs2-tag--gold { background: #fff3c4; }
.rs2-score { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; }
.rs2-score b { padding: 1px 0; text-align: center; font-family: var(--font-head); font-size: 17px; font-weight: 400; background: #fff; border: 2px solid var(--px-ink); border-radius: 6px; }
.rs2-score b:first-child { background: #eaf7e4; }

/* ---------- CÂMBIO: limite de ROI no levantamento (como no Cats) ---------- */
.ex-roi-row span:last-child { text-align: right; }
.ex-roi-row small { display: block; margin-top: 1px; font-size: 10px; opacity: .7; }
.ex-roi-row--cut span:last-child { color: #b07b00; }
.ex-roi-row--zero span:last-child { color: #c4382f; }
.ex-roi-err { margin-top: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.4; color: #8a2a22; background: #ffe9e6; border: 2px solid #c4382f; border-radius: 8px; }

/* ---------- ESTÁDIO: uma bancada, com "agora / próximo nível" ---------- */
.st-toggle { display: flex; gap: 4px; margin-bottom: 6px; }
.st-toggle button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; cursor: pointer;
  font-family: var(--font-head); font-size: 12px; color: var(--px-ink); background: #e8e2c8; border: 2px solid var(--px-ink); border-radius: 7px;
}
.st-toggle button.on { background: linear-gradient(180deg, #ffe17a, #f0b93a); box-shadow: 0 2px 0 var(--px-ink); }
.st-prev { position: relative; }
.st-prev-gain {
  position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px;
  font-family: var(--font-head); font-size: 11px; color: #fff; background: rgba(16,37,26,.85); border-radius: 5px;
}

/* ---------- TÁTICA: banco ---------- */
.tac-bench {
  margin-top: 10px; padding: 8px 8px 10px; color: var(--px-ink);
  background: linear-gradient(180deg, #6b4a2b, #563a20); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.tac-bench-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #fbf8ea; }
.tac-bench-head b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 13px; font-weight: 400; }
.tac-bench-head b .px-icon rect { fill: #ffe17a; }
.tac-bench-head small { font-size: 10px; opacity: .8; text-align: right; }
.tac-bench-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tac-bench-card {
  position: relative; flex: 0 0 66px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 18px 2px 6px; cursor: pointer; font: inherit;
  color: var(--px-ink); background: var(--px-paper); border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 3px 0 var(--px-ink);
}
.tac-bench-card.is-picked { background: #fff1b0; border-color: #c98a0a; box-shadow: 0 0 0 3px #ffe17a, 0 3px 0 var(--px-ink); transform: translateY(-3px); }
.tac-bench-card.is-tired .kit-sprite { filter: saturate(.7); }
.tac-bench-card .kit-sprite--xs { width: 44px; }
.tac-bench-pos { position: absolute; top: 3px; left: 3px; padding: 0 3px; font-family: var(--font-head); font-size: 8px; color: #fff; border-radius: 3px; background: #6b7c88; }
.tac-bench-pos--DF { background: #3b6fd8; } .tac-bench-pos--MF { background: #2c9a4b; } .tac-bench-pos--FW { background: #d8433b; }
.tac-bench-ovr { position: absolute; top: 2px; right: 3px; padding: 0 3px; font-family: var(--font-head); font-size: 11px; border: 1px solid var(--px-ink); border-radius: 3px; }
.tac-bench-ovr--gold { background: #f0b93a; } .tac-bench-ovr--silver { background: #d6dcde; } .tac-bench-ovr--bronze { background: #d8a06a; }
.tac-bench-name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 9px; }
.tac-bench-fit { position: static; transform: none; margin-top: 2px; }
.tac-bench-empty { padding: 8px; text-align: center; font-size: 11px; color: #fbf8ea; opacity: .8; }
/* as 7 formações numa linha (antes 6 + 1 sozinha na 2.ª linha) */
.tac-formations { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tac-formation-pill { min-width: 0; padding: 8px 0 7px; font-size: 11px; letter-spacing: 0 !important; border-width: 2px !important; border-radius: 7px; box-shadow: 0 3px 0 var(--px-ink) !important; }
.tac-slot.is-target { animation: tacTarget .8s ease-in-out infinite alternate; }
@keyframes tacTarget { to { filter: drop-shadow(0 0 6px #ffe17a) brightness(1.15); transform: scale(1.06); } }

/* ---------- rodapé ---------- */
.hub-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hub-mini-card {
  min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  color: var(--px-ink); cursor: pointer; font: inherit; border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
  background: radial-gradient(circle at 50% 40%, #fffbe8 0%, #f1e6bd 70%, #e3d39e 100%);
}
.hub-mini-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.hub-mini-art { height: 62px; display: flex; align-items: center; justify-content: center; }
.hub-mini-art > .art-icon, .hub-mini-art > img { filter: drop-shadow(0 3px 0 rgba(16,37,26,.28)); }
.hub-mini-label {
  padding: 4px 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .4px; color: #fff; text-shadow: 0 1px 0 var(--px-ink);
  background: linear-gradient(180deg, #2c7a45, #1d5a33); border-top: 2px solid var(--px-ink);
}
.hub-mini-card small { font-size: 11px; opacity: .7; }
.hub-mini-kits { display: flex; align-items: flex-end; gap: 0; padding-top: 4px; }
.hub-mini-kits .kit-sprite--xs { width: 40px; }

/* ---------- LOJA ---------- */
.shop { display: flex; flex-direction: column; gap: 10px; }
.shop > *, .hub2 > * { flex-shrink: 0; }   /* (o .panel-main tem altura fixa: nada encolhe) */
.shop-hero {
  position: relative; padding: 16px 12px 14px; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #2c7a45 0%, #164a2c 60%, #0d2b17 100%);
  border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(240,185,58,.5), var(--px-shadow);
}
.shop-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 140%; opacity: .18; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 100%, #ffe17a 0 6deg, transparent 6deg 18deg);
}
.shop-hero-ribbon {
  position: relative; display: inline-block; padding: 5px 30px; font-family: var(--font-head); font-size: 22px; letter-spacing: 3px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f, #f0b93a); border-top: 3px solid var(--px-ink); border-bottom: 3px solid var(--px-ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}
.shop-hero-sub { position: relative; margin-top: 8px; font-size: 12px; opacity: .9; }
.shop-hero-gold {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px;
  font-family: var(--font-head); font-size: 17px; background: rgba(0,0,0,.35); border: 2px solid rgba(240,185,58,.7); border-radius: 8px;
}
.shop-hero-gold b { font-weight: 400; }
.shop-starter {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: linear-gradient(180deg, #fff3c4, #ffd36b); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.shop-starter-ribbon { position: absolute; top: -3px; left: 10px; padding: 1px 8px; font-family: var(--font-head); font-size: 10px; color: #fff; background: #d8433b; border: 2px solid var(--px-ink); border-top: 0; border-radius: 0 0 6px 6px; }
.shop-starter-text { flex: 1; display: flex; flex-direction: column; }
.shop-starter-text b { font-family: var(--font-head); font-size: 15px; }
.shop-starter-text small { font-size: 11px; opacity: .8; }
.shop-starter-cta { padding: 7px 12px; font-family: var(--font-head); font-size: 13px; color: #fff; background: linear-gradient(180deg, #3fb257, #23843a); border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 3px 0 var(--px-ink); }
.shop-sec { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-family: var(--font-head); font-size: 15px; color: var(--px-ink); }
.shop-sec span { display: inline-flex; align-items: center; gap: 6px; }
.shop-sec small { font-family: var(--font-head); font-size: 11px; opacity: .65; }
.shop-sec-sub { margin-top: -6px; font-size: 11px; color: var(--px-ink); opacity: .75; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-card {
  --pos: #6b7c88;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 10px; overflow: hidden;
  color: var(--px-ink); cursor: pointer; font: inherit; background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.shop-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 92px; background: linear-gradient(180deg, var(--pos), transparent); opacity: .45; }
.shop-card--GK { --pos: #8a96a0; } .shop-card--DF { --pos: #3b6fd8; } .shop-card--MF { --pos: #2c9a4b; } .shop-card--FW { --pos: #d8433b; }
.shop-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.shop-card.is-full { filter: grayscale(.6); opacity: .75; cursor: default; }
.shop-card-pos { position: absolute; top: 7px; left: 7px; z-index: 2; padding: 1px 6px; font-family: var(--font-head); font-size: 10px; color: #fff; background: var(--pos); border: 2px solid var(--px-ink); border-radius: 5px; }
.shop-card-fig { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.shop-card-fig .kit-sprite--card { width: 72px; }
.shop-pedestal { position: absolute; left: 50%; bottom: 8px; width: 56px; height: 12px; transform: translateX(-50%); border-radius: 50%; background: rgba(16,37,26,.18); }
.shop-q {
  position: absolute; left: 50%; top: 22px; z-index: 3; width: 24px; height: 24px; transform: translateX(-50%); font-style: normal;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 15px; color: var(--px-ink);
  background: #ffe17a; border: 2px solid var(--px-ink); border-radius: 50%; animation: tgBadge 2.2s ease-in-out infinite;
}
.shop-card-name { position: relative; font-family: var(--font-head); font-size: 13px; }
.shop-card-count { position: relative; width: 82%; height: 6px; background: rgba(16,37,26,.15); border-radius: 3px; overflow: hidden; }
.shop-card-count i { display: block; height: 100%; background: var(--pos); }
.shop-card-meta { font-size: 10px; opacity: .7; }
.shop-price {
  width: 100%; margin-top: 4px; padding: 6px 4px; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font-head); font-size: 14px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f, #f0b93a); border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: inset 0 -3px 0 #c98a0a, 0 3px 0 var(--px-ink);
}
.shop-price.is-poor { background: #ece6cc; box-shadow: 0 3px 0 var(--px-ink); color: #8a7a55; }
.shop-price.is-full { background: #d9dcd6; box-shadow: none; }
.shop-rows { display: flex; flex-direction: column; gap: 8px; }
.shop-row {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow);
}
.shop-row:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.shop-row-ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: #efe4bb; border: 2px solid var(--px-ink); border-radius: 10px; }
.shop-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop-row-text b { font-family: var(--font-head); font-size: 14px; }
.shop-row-text small { font-size: 11px; opacity: .7; }
.shop-row-price { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-family: var(--font-head); font-size: 12px; background: #fff3c4; border: 2px solid var(--px-ink); border-radius: 8px; white-space: nowrap; }
.shop-row-price .px-icon { transform: rotate(-90deg); }
.shop-row-tag { position: absolute; top: -6px; left: 40px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--font-head); font-size: 11px; color: #fff; background: #e5484d; border: 2px solid var(--px-ink); border-radius: 9px; }
.shop-note { padding: 2px 0 8px; text-align: center; font-size: 11px; color: var(--px-ink); opacity: .7; }

/* ---------- EQUIPA DA SEMANA (popup) ---------- */
.tw.popup-box {
  padding-top: 0 !important; overflow-x: hidden; color: #eef4ff; border-color: #000 !important;
  background: radial-gradient(ellipse at 50% -10%, #2c5d94 0%, #142c50 45%, #0b1830 100%) !important;
}
.tw .pd-footer { background: #0b1830; border-top-color: #000; }
.tw-head {
  position: relative; margin: 0 -16px 12px; padding: 46px 14px 16px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,225,122,.08), rgba(0,0,0,.3)); border-bottom: 3px solid #f0b93a;
}
.tw-head::before {
  content: ""; position: absolute; left: -30%; right: -30%; top: -90%; height: 190%; opacity: .2; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 100%, #ffe17a 0 5deg, transparent 5deg 15deg);
}
.tw-x { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.tw-head-k { position: relative; display: block; font-size: 11px; letter-spacing: .4px; opacity: .8; }
.tw-head-t {
  position: relative; display: block; margin-top: 6px; font-family: var(--font-head); font-size: 26px; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 1px; color: #ffe17a; text-shadow: 0 3px 0 #6b4200, 0 0 18px rgba(255,200,80,.45);
}
.tw-head-you {
  position: relative; display: inline-block; margin-top: 10px; padding: 3px 10px; font-family: var(--font-head); font-size: 11px;
  color: var(--px-ink); background: linear-gradient(180deg, #ffe98f, #f0b93a); border: 2px solid #000; border-radius: 6px; box-shadow: 0 2px 0 #000;
}

.tw-mvp {
  position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,225,122,.2), rgba(255,255,255,.03)); border: 3px solid #f0b93a; border-radius: 14px;
  box-shadow: 0 4px 0 #000, inset 0 0 24px rgba(255,200,80,.14);
}
.tw-mvp--silver { margin: 12px 0 0; border-color: #b8c4cf; background: linear-gradient(135deg, rgba(200,215,230,.16), rgba(255,255,255,.03)); box-shadow: 0 4px 0 #000; }
.tw-mvp--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.2), transparent); animation: twShine 4.5s ease-in-out infinite;
}
@keyframes twShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.tw-mvp-card {
  position: relative; flex-shrink: 0; width: 84px; height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff4c4 0%, #f0b93a 60%, #b0700c 100%); border: 3px solid #000; border-radius: 10px; box-shadow: 0 3px 0 #000;
}
.tw-mvp--silver .tw-mvp-card { background: radial-gradient(circle at 50% 35%, #ffffff 0%, #c7d2dc 60%, #7d8fa0 100%); }
.tw-mvp-r { position: absolute; top: 4px; left: 6px; z-index: 2; font-family: var(--font-head); font-size: 20px; font-weight: 400; color: var(--px-ink); }
.tw-mvp-fig .kit-sprite { width: 72px; }
.tw-mvp-pos { position: relative; z-index: 2; margin: -6px 0 4px; padding: 0 6px; font-family: var(--font-head); font-size: 9px; color: #fff; background: #000; border-radius: 3px; }
.tw-mvp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tw-mvp-label { font-family: var(--font-head); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: #ffe17a; }
.tw-mvp--silver .tw-mvp-label { color: #dfe7ee; }
.tw-mvp-name { font-family: var(--font-head); font-size: 17px; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.tw-mvp-club { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; }
.tw-mvp-stats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tw-mvp-stats span {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.2); border-radius: 7px;
}
.tw-mvp-stats b { font-family: var(--font-head); font-size: 13px; font-weight: 400; color: #fff; }
.tw-mvp.is-mine { border-color: #7ef0a0; }

.tw-pitch {
  position: relative; height: 420px; margin: 0 -4px; overflow: hidden; border: 3px solid #000; border-radius: 14px; box-shadow: 0 4px 0 #000;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.42)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 44px, rgba(0,0,0,.05) 44px 88px),
    url('images/field/pitch-turf-1.png') 0 0 / 90px 43px repeat, #2f7a2c;
  image-rendering: pixelated;
}
.tw-pitch::before { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.32); border-radius: 4px; }
.tw-light { position: absolute; top: -46px; z-index: 1; width: 130px; height: 130px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,225,.5), transparent 65%); }
.tw-light--l { left: -40px; } .tw-light--r { right: -40px; }
.tw-line { position: absolute; pointer-events: none; }
.tw-line--mid { left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(255,255,255,.3); }
.tw-line--cc { left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.3); border-radius: 50%; }
.tw-line--box { left: 50%; bottom: 8px; width: 130px; height: 48px; transform: translateX(-50%); border: 2px solid rgba(255,255,255,.3); border-bottom: 0; }
.tw-tok { position: absolute; z-index: 2; width: 78px; margin-left: -39px; display: flex; flex-direction: column; align-items: center; }
.tw-tok-card {
  position: relative; width: 58px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden;
  background: linear-gradient(180deg, #24466f 0%, #0f2240 100%); border: 2px solid #9fb6d6; border-radius: 8px; box-shadow: 0 0 0 2px #000, 0 4px 0 2px #000;
}
.tw-tok-fig .kit-sprite { width: 50px; margin-bottom: -2px; }
.tw-tok-r { position: absolute; top: 2px; left: 4px; z-index: 2; font-family: var(--font-head); font-size: 12px; font-weight: 400; color: #ffe17a; text-shadow: 0 1px 0 #000; }
.tw-tok-crest { position: absolute; top: 3px; right: 3px; z-index: 2; line-height: 0; }
.tw-tok-star { position: absolute; top: 16px; left: 5px; z-index: 2; font-style: normal; font-size: 11px; color: #6b4200; }
.tw-tok-name {
  max-width: 78px; margin-top: 5px; padding: 1px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-head); font-size: 10px; color: #fff; background: rgba(0,0,0,.78); border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
}
.tw-tok.is-mvp .tw-tok-card {
  background: radial-gradient(circle at 50% 30%, #fff4c4, #f0b93a 60%, #a8690c); border-color: #fff3b0;
  box-shadow: 0 0 0 2px #000, 0 4px 0 2px #000, 0 0 16px 2px rgba(255,210,90,.75);
}
.tw-tok.is-mvp .tw-tok-r { color: var(--px-ink); text-shadow: none; }
.tw-tok.is-mine .tw-tok-card { border-color: #7ef0a0; }
.tw-tok.is-mine .tw-tok-name { color: var(--px-ink); background: #f0b93a; border-color: #000; }

.tw-moment {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: 0 3px 0 #000;
}
.tw-moment-fig {
  flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 70%, #3a6aa8, #13294a); border: 2px solid #000; border-radius: 10px;
}
.tw-moment-fig .kit-sprite { width: 54px; }
.tw-moment-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tw-moment-body small { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #ffe17a; }
.tw-moment-body > b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-moment-body em { display: block; font-style: normal; font-size: 11px; line-height: 1.4; opacity: .75; }
.tw-moment-body em .lg-crest { display: inline-flex; vertical-align: -3px; margin-right: 2px; }
.tw-moment-body em.tw-score-names { display: flex; }
.tw-play {
  flex-shrink: 0; width: 48px; height: 48px; padding: 0 0 0 3px; cursor: pointer; font-size: 18px; color: #fff;
  background: linear-gradient(180deg, #3fb257, #23843a); border: 3px solid #000; border-radius: 50%; box-shadow: 0 3px 0 #000, 0 0 14px rgba(63,178,87,.55);
}
.tw-play:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.tw-score { display: flex; align-items: center; gap: 8px; }
.tw-score b { display: inline-flex; gap: 5px; padding: 2px 10px; font-family: var(--font-head); font-size: 20px; font-weight: 400; color: var(--px-ink); background: #fff; border: 2px solid #000; border-radius: 6px; }
.tw-score b i { font-style: normal; opacity: .45; }
.tw-score-names { flex-wrap: nowrap !important; justify-content: space-between; gap: 8px !important; }
.tw-score-names span { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tw-me { margin-top: 12px; padding: 10px; background: rgba(0,0,0,.25); border: 2px dashed rgba(255,255,255,.22); border-radius: 12px; }
.tw-me-label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #9fd6ff; }
.tw-me-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tw-me-row span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; font-size: 10px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border-radius: 8px; }
.tw-me-row b { font-family: var(--font-head); font-size: 16px; font-weight: 400; color: #fff; }
.tw-me-row .is-w b { color: #7ef0a0; } .tw-me-row .is-l b { color: #ff8a7a; }
.tw-me small { display: block; margin-top: 6px; text-align: center; font-size: 11px; opacity: .8; }
.tw-empty { padding: 20px; text-align: center; font-size: 12px; opacity: .8; border: 2px dashed rgba(255,255,255,.25); border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .tw-mvp--gold::after { display: none; } }

/* ---- selo "Formação": jogador oferecido, não se vende ---- */
.mk-academy {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 8px; cursor: help;
  font-family: var(--font-head); font-size: 10px; color: #6b5a1e; background: linear-gradient(180deg, #fff3c4, #f0d98a);
  border: 2px solid var(--px-ink); border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.pd-footer .mk-academy { flex: 1; max-width: 170px; }
.mk-starter { color: #1d5a2c; background: linear-gradient(180deg, #e3f6dc, #b9e2a8); }

/* ---- pré-temporada (menu_league.js → renderPreSeason) ---- */
.pre-info { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; padding: 10px 12px; font-size: 12px; line-height: 1.4;
  color: var(--px-ink); background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.pre-info b { display: flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 13px; }
.pre-info span::before { content: "•"; margin-right: 5px; color: #2f8a3d; }
.pre-dep { align-self: flex-start; margin-top: 4px; }
.lg-tabs.pre-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pre-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pre-tabs button small { font-size: 9px; opacity: .75; }
.pre-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pre-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; background: #fff; border: 2px solid var(--px-ink); border-radius: 8px; color: var(--px-ink); }
.pre-row.is-me { background: #fff3c4; box-shadow: 0 0 0 2px #f0b93a inset; }
.pre-rank { width: 24px; font-family: var(--font-head); font-size: 13px; text-align: center; }
.pre-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.pre-pow { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-head); font-size: 13px; }
.pre-empty { padding: 18px 10px; text-align: center; font-size: 12px; color: #fbf8ea; opacity: .85; }

/* ---- fim de temporada (openSeasonEnd) ---- */
.se-box { position: relative; overflow: hidden; width: min(380px, 94vw); text-align: center; }
.se-box > *:not(.sc-rays):not(.popup-close-btn) { position: relative; }
.se-title { margin: 4px 0 10px; font-family: var(--font-head); font-size: 20px; color: #ffd34d; text-shadow: 0 2px 0 var(--px-ink); }
.se-champ { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; color: #fff; }
.se-champ b { font-family: var(--font-head); font-size: 17px; }
.se-champ small { font-size: 11px; opacity: .85; }
.se-sub { margin: 6px 0 4px; font-family: var(--font-head); font-size: 12px; color: #ffd34d; }
.se-winners { max-height: 150px; overflow-y: auto; }
.se-win { display: flex; align-items: center; gap: 6px; padding: 4px 8px; margin-bottom: 3px; font-size: 12px; color: var(--px-ink); background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 7px; text-align: left; }
.se-win span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.se-win small { font-size: 10px; opacity: .7; }
.se-me { margin-top: 8px; padding: 10px; color: var(--px-ink); background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; }
.se-me .se-sub { margin-top: 0; color: #2f7a3d; }
.se-me-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.se-me-row b { font-family: var(--font-head); font-size: 22px; }
.se-me-rec { margin: 2px 0 8px; font-size: 11px; opacity: .8; }
.se-prize { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.se-prize-amt { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 24px; }
.se-prize-amt b { font-family: var(--font-head); font-size: 26px; }
.se-prize small { font-size: 11px; opacity: .8; }
.se-claim { width: 100%; }
.se-prize--done, .se-prize--none { flex-direction: row; justify-content: center; font-size: 12px; font-weight: 700; }
.lg-last-btn { margin-left: 6px; padding: 3px 8px; font-size: 10px; }

/* ---- prémio do amigável (openFriendlyRewardInfo) ---- */
button.hp-prize { position: relative; border: 0; cursor: pointer; font: inherit; color: inherit; }

/* ---- Início: cartão dos Torneios ---- */
.hp-card--tour { min-height: 0; gap: 5px; padding: 8px; background: radial-gradient(ellipse at 50% 0%, #b8862a 0%, #8a5c15 55%, #6a430b 100%); }
.hp-card--tour .hp-head { font-size: 13px; }
.hp-tour-sub { font-size: 11px; opacity: .9; }
.hp-tour-btns { display: flex; gap: 5px; width: 100%; }
.hp-tour-btns button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px; cursor: pointer;
  font-family: var(--font-head); font-size: 11px; color: var(--px-ink); background: #ffe17a; border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 2px 0 var(--px-ink); }
.tr-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px;
  font-style: normal; font-size: 10px; color: #fff; background: #e5484d; border: 1.5px solid var(--px-ink); border-radius: 8px; }

/* ---- TORNEIOS (menu_tournaments.js) ---- */
.tour { padding-bottom: 20px; }
.tr-hero { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; padding: 12px; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #b8862a 0%, #7a4f10 100%); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.tr-hero-top { display: flex; align-items: center; gap: 8px; }
.tr-hero-text { flex: 1; min-width: 0; }
.tr-hero-text b { display: block; margin-bottom: 3px; font-family: var(--font-head); font-size: 17px; text-shadow: 0 2px 0 var(--px-ink); }
.tr-hero-text small { display: block; font-size: 12px; line-height: 1.3; opacity: .92; }
.tr-hero-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; margin: -4px -2px -4px 0;
  background: radial-gradient(circle, rgba(255,225,122,.4) 0%, transparent 65%); }
.tr-hero-art > * { filter: drop-shadow(0 3px 0 rgba(5,15,9,.5)); }
.tr-create { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; cursor: pointer; font-family: var(--font-head); font-size: 16px;
  color: var(--px-ink); background: linear-gradient(180deg, #ffe58a, #f0b93a); border: 3px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.tr-code { display: flex; gap: 6px; }
.tr-code input, .tr-input { flex: 1; min-width: 0; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--px-ink); background: #fff; border: 2px solid var(--px-ink); border-radius: 8px; }
.tr-code input { text-transform: uppercase; letter-spacing: 2px; }
.tr-code button { padding: 0 12px; cursor: pointer; font-family: var(--font-head); font-size: 12px; color: #fff; background: #2f8a3d; border: 2px solid var(--px-ink); border-radius: 8px; }
.tr-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 8px 0; }
.tr-tabs button { position: relative; padding: 8px 4px; cursor: pointer; font-family: var(--font-head); font-size: 12px; color: var(--px-ink);
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 2px 0 var(--px-ink); }
.tr-tabs button.on { color: #fff; background: #2f8a3d; }
.tr-list { display: flex; flex-direction: column; gap: 8px; }
.tr-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.tr-card.is-mine { background: #fff3c4; }
.tr-card-ico { flex: 0 0 38px; display: flex; justify-content: center; }
.tr-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tr-card-name { font-family: var(--font-head); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-card-meta { font-size: 11px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-card-bar { position: relative; height: 12px; background: #e4ddc2; border: 1.5px solid var(--px-ink); border-radius: 6px; overflow: hidden; }
.tr-card-bar i { position: absolute; inset: 0 auto 0 0; background: #4fd16b; }
.tr-card-bar em { position: relative; display: block; font-style: normal; font-size: 9px; font-weight: 800; line-height: 10px; text-align: center; }
.tr-card-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tr-prize { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-head); font-size: 14px; }
.tr-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; font-style: normal; font-size: 10px; font-weight: 800; white-space: nowrap;
  color: var(--px-ink); background: #fff; border: 1.5px solid var(--px-ink); border-radius: 6px; }
.tr-chip--inv { background: #d9ecff; } .tr-chip--gold { background: #ffd34d; }
.tr-live { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: mo-live-dot 1.2s steps(2) infinite; }
@keyframes mo-live-dot { 50% { opacity: .25; } }
.tr-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px; text-align: center; font-size: 13px; color: var(--px-ink); }
.tr-rules, .tr-box { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.4; color: var(--px-ink);
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; }
.tr-rules b, .tr-box > b { display: flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 13px; }
.tr-rules span::before, .tr-box--rules span::before { content: "•"; margin-right: 5px; color: #2f8a3d; }
.tr-top { margin: 10px 0; padding: 12px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #3a64a8 0%, #142a52 100%);
  border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.tr-top--cup { background: radial-gradient(ellipse at 50% 0%, #b8862a 0%, #6a430b 100%); }
.tr-top-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.tr-code-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; cursor: pointer; font-family: var(--font-head); font-size: 12px; letter-spacing: 2px;
  color: var(--px-ink); background: #ffe17a; border: 1.5px solid var(--px-ink); border-radius: 6px; }
.tr-pot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.tr-pot small { font-size: 11px; opacity: .85; margin-right: 4px; }
.tr-pot b { font-family: var(--font-head); font-size: 28px; text-shadow: 0 2px 0 var(--px-ink); }
.tr-split { display: flex; justify-content: center; gap: 10px; font-family: var(--font-head); font-size: 12px; }
.tr-status { margin: 6px 0; font-size: 12px; opacity: .92; }
.tr-actions { display: flex; flex-direction: column; gap: 6px; }
.tr-actions .mk-btn { justify-content: center; }
.tx-cta:disabled { opacity: .55; }
.tr-member { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; font-weight: 700; background: #fff; border: 1.5px solid var(--px-ink); border-radius: 8px; }
.tr-member span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-member--free { justify-content: center; font-weight: 400; opacity: .55; border-style: dashed; }
.tr-invited { font-size: 11px; opacity: .75; }
.tr-table .lg-row.tr-medal-1 { background: #fff3c4; } .tr-table .lg-row.tr-medal-2 { background: #eef1f2; } .tr-table .lg-row.tr-medal-3 { background: #f6e3cf; }
.tr-table .lg-row { cursor: default; }
.tr-round { margin-top: 8px; }
.tr-round-head, .tr-third { margin: 4px 2px; font-family: var(--font-head); font-size: 12px; color: var(--px-ink); }
.tr-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 5px; padding: 6px 8px; color: var(--px-ink);
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 8px; }
.tr-side { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; }
.tr-side:last-child { flex-direction: row-reverse; text-align: right; }
.tr-side b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tr-side.is-win b { color: #1d5a2c; font-weight: 900; } .tr-side.is-me b { text-decoration: underline; }
.tr-side--tbd { justify-content: center; opacity: .5; }
.tr-score { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 2px 6px; cursor: pointer; font-family: var(--font-head); font-size: 14px;
  color: var(--px-ink); background: #fff; border: 1.5px solid var(--px-ink); border-radius: 6px; }
.tr-score small { font-size: 9px; font-family: inherit; opacity: .8; }
.tr-score--live { flex-direction: row; gap: 4px; color: #fff; background: #e5484d; font-size: 11px; }
.tr-score--live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: mo-live-dot 1.2s steps(2) infinite; }
.tr-time { font-size: 10px; cursor: default; }
.tr-bye { font-size: 10px; opacity: .6; cursor: default; }
.tr-match--bye { grid-template-columns: 1fr auto; opacity: .8; }
.tr-bracket { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tr-bcol { flex: 0 0 210px; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; }
.tr-bhead { font-family: var(--font-head); font-size: 12px; text-align: center; color: var(--px-ink); }
.tr-match--c { grid-template-columns: 1fr; gap: 3px; }
.tr-match--c .tr-side:last-child { flex-direction: row; text-align: left; }
.tr-match--c .tr-score { flex-direction: row; gap: 4px; justify-self: center; }
.tr-podium { margin: 10px 0; padding: 12px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #b8862a 0%, #4a2e06 100%);
  border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.tr-podium-title { font-family: var(--font-head); font-size: 18px; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.tr-steps { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 10px 0; }
.tr-step { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; color: var(--px-ink);
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px 10px 4px 4px; }
.tr-step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.tr-step i { font-style: normal; font-size: 22px; }
.tr-step span { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-head); font-size: 11px; }
.tr-step--1 { padding-top: 18px; background: #fff3c4; } .tr-step--2 { padding-top: 10px; } .tr-step--3 { padding-top: 4px; }
.tr-claim-left { display: block; margin-top: 4px; font-size: 11px; opacity: .85; }
.tr-scorers { margin-top: 10px; padding: 8px 10px; text-align: left; color: var(--px-ink); background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; }
.tr-scorers > b { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-family: var(--font-head); font-size: 12px; }
.tr-scorers div { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 12px; }
.tr-scorers div span { flex: 1; font-weight: 700; } .tr-scorers div small { opacity: .65; } .tr-scorers div b { font-family: var(--font-head); }
.tr-form { width: min(380px, 94vw); max-height: 88vh; overflow-y: auto; color: var(--px-ink); background: #fbf8ea; }
.tr-form .sc-label { display: block; margin: 10px 0 4px; font-family: var(--font-head); font-size: 12px; color: #2f7a3d; opacity: 1; }
.tr-form .tr-input { width: 100%; box-sizing: border-box; }
.tr-form .tx-price-box { display: flex; }
.tr-form-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-family: var(--font-head); font-size: 18px; }
.tr-hint { margin: 3px 0 2px; font-size: 11px; opacity: .75; line-height: 1.35; }
.tr-range { width: 100%; accent-color: #2f8a3d; }
.tr-hours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tr-hours small { font-size: 11px; opacity: .7; }

/* ---- MUSEU ---- */
.mu-sub { margin: 6px 0 10px; font-size: 12px; color: var(--px-ink); opacity: .85; }
.mu-totals { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.mu-totals span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.mu-totals b { font-family: var(--font-head); font-size: 18px; font-weight: 400; color: var(--px-ink); }
/* medalhas desenhadas (antes emoji 🥇 — destoava do pixel) */
.mu-medal { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-style: normal;
  font-family: var(--font-head); font-size: 12px; color: var(--px-ink); border: 2px solid var(--px-ink); border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.6); }
.mu-medal--1 { background: radial-gradient(circle at 40% 35%, #fff1b0, #f0b93a 60%, #c98a0a); }
.mu-medal--2 { background: radial-gradient(circle at 40% 35%, #ffffff, #c9d2d6 60%, #8f9ba1); }
.mu-medal--3 { background: radial-gradient(circle at 40% 35%, #ffe0c2, #d08d55 60%, #9a5f2f); }
/* o armário de troféus: madeira, prateleiras com as taças */
.mu-cab { padding: 10px 10px 6px; background: radial-gradient(ellipse at 50% 0%, #8a5d36, #5e3d22 75%); border: 3px solid var(--px-ink); border-radius: 12px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.07), inset 0 10px 18px rgba(0,0,0,.35), var(--px-shadow); }
.mu-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
.mu-cup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 16px; text-align: center; color: #fbf8ea; }
.mu-cup::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 2px; height: 9px; background: linear-gradient(180deg, #c08a52, #8a5d36);
  border-top: 2px solid var(--px-ink); border-bottom: 2px solid var(--px-ink); }
.mu-cup--1 .mu-ico { background: radial-gradient(circle, rgba(255,225,122,.45) 0%, transparent 65%); }
.mu-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 56px; }
.mu-ico img { filter: drop-shadow(0 3px 0 rgba(5,15,9,.5)); }
.mu-ico .mu-medal { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; font-size: 11px; }
.mu-cup b { font-size: 10px; line-height: 1.25; text-shadow: 0 1px 0 var(--px-ink); }
.mu-cup small { font-size: 9px; opacity: .75; }
.mu-cup.is-ghost .mu-ico img { filter: brightness(0) opacity(.32); }
.mu-empty { margin: 4px 0 6px; text-align: center; font-size: 12px; line-height: 1.35; color: #fbf8ea; text-shadow: 0 1px 0 var(--px-ink); }
.mu-legends { margin-top: 12px; padding: 8px; background: #fbf8ea; border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.mu-legends-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 6px; font-family: var(--font-head); font-size: 15px; color: var(--px-ink); }
.mu-legend { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 2px; margin-top: 6px; background: linear-gradient(90deg, #fff1b0, #fbf8ea 70%);
  border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 2px 0 var(--px-ink); }
.mu-legend-fig { flex: 0 0 46px; height: 46px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.mu-legend-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.mu-cup-player { display: block; margin: 2px 0; font-style: normal; font-size: 10px; color: #ffe17a; }
.mu-legend-info b { font-size: 13px; color: var(--px-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-legend-info small { font-size: 10.5px; color: var(--px-ink); opacity: .8; }
.mu-legend-year { flex: 0 0 auto; padding: 2px 7px; font-style: normal; font-family: var(--font-head); font-size: 12px; color: #fbf8ea; background: var(--px-ink); border-radius: 8px; }
.mu-legends-empty { padding: 6px 4px 2px; font-size: 12px; line-height: 1.35; color: var(--px-ink); opacity: .8; text-align: center; }
.hp-info { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 3px; font-style: normal; font-size: 10px; font-weight: 900;
  color: var(--px-ink); background: #ffd34d; border: 1.5px solid var(--px-ink); border-radius: 50%; }
.fr-box { width: min(360px, 92vw); color: var(--px-ink); background: #fbf8ea; }
.fr-title { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-head); font-size: 18px; margin: 2px 0 4px; }
.fr-sub { text-align: center; font-size: 12px; margin-bottom: 10px; opacity: .85; }
.fr-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 4px; padding: 6px 10px; margin-bottom: 3px; font-size: 13px; font-weight: 700;
  background: #fff; border: 2px solid var(--px-ink); border-radius: 8px; }
.fr-row span { display: inline-flex; align-items: center; gap: 4px; }
.fr-row.fr-head { background: none; border: 0; padding: 0 12px; font-size: 10px; font-family: var(--font-head); opacity: .7; }
.fr-row.is-me { background: #fff3c4; box-shadow: 0 0 0 2px #f0b93a inset; }
.fr-bonuses { margin: 8px 0; }
.fr-bonus { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; font-size: 12px; background: #e3f6dc; border: 2px solid #2f8a3d; border-radius: 8px; margin-bottom: 4px; }
.fr-bonus b { display: inline-flex; align-items: center; gap: 3px; color: #1d5a2c; }
.fr-hint { font-size: 11px; opacity: .75; text-align: center; }
.fr-total { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-family: var(--font-head); background: #ffd34d; border: 2px solid var(--px-ink); border-radius: 8px; }
.fr-total b { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }

/* ---- emotes no jogo ao vivo (match.js) ---- */
.mo-emotes { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.mo-emote { position: absolute; bottom: 18%; display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: moEmoteUp 2.6s cubic-bezier(.2,.8,.3,1) forwards; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }
.mo-emote--A { left: 14%; } .mo-emote--B { right: 14%; }
.mo-emote i { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 6px; font-style: normal; font-size: 10px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; }
.mo-emote .mo-emote-img { image-rendering: pixelated; }
.mo-emote .mo-emote-emoji { font-size: 48px; line-height: 1; }
@keyframes moEmoteUp {
  0% { transform: translate(0, 30px) scale(.4); opacity: 0; }
  15% { transform: translate(calc(var(--dx) * .3), 0) scale(1.15); opacity: 1; }
  25% { transform: translate(calc(var(--dx) * .4), -6px) scale(1); }
  80% { opacity: 1; }
  100% { transform: translate(var(--dx), -120px) scale(.9); opacity: 0; }
}
.mo-emote-tray { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 45; display: grid; grid-template-columns: repeat(6, 44px); gap: 6px;
  padding: 8px; background: rgba(10, 29, 18, .92); border: 2px solid #f0b93a; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.mo-emote-pick { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 9px; }
.mo-emote-pick:active { transform: scale(.9); }
.mo-emote-pick .mo-emote-emoji { font-size: 26px; }
.mo-emote-btn { position: relative; font-size: 18px; }
.mo-emote-btn.is-cool { opacity: .55; }
.mo-emote-btn.is-cool::after { content: attr(data-cool); position: absolute; right: -4px; top: -4px; min-width: 16px; height: 16px; padding: 0 3px;
  font-size: 10px; font-weight: 900; line-height: 16px; color: #1d2b1f; background: #ffd34d; border-radius: 8px; }

/* ---- características na tática (banco e relvado) ---- */
.tac-traits .tr-icons i { width: 15px; height: 15px; border-width: 1.5px; }
.tac-traits .tr-icons svg { width: 9px; height: 9px; }
.tac-bench-card .tac-traits { position: absolute; left: 3px; top: 20px; display: flex; }
.tac-bench-card .tac-traits .tr-icons { flex-direction: column; }
.tac-traits--slot { position: absolute; top: 0; left: 0; z-index: 2; }
.tac-traits--slot .tr-icons { flex-direction: column; gap: 1px; }

/* ---- ecrã de entrada: mensagens do bot (app.js → botGate) ---- */
.bg-gate { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, #1d5a2c 0%, #0c2a16 60%, #071a0d 100%); transition: opacity .3s; }
.bg-gate.is-gone { opacity: 0; pointer-events: none; }
.bg-card { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px 18px; text-align: center;
  color: var(--px-ink); background: #fbf8ea; border: 3px solid var(--px-ink); border-radius: 16px; box-shadow: 0 6px 0 var(--px-ink), 0 20px 40px rgba(0,0,0,.5); }
.bg-logo { width: 110px; height: 110px; margin-top: -70px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.bg-title { font-family: var(--font-head); font-size: 21px; line-height: 1.15; }
.bg-sub { font-size: 13px; font-weight: 700; line-height: 1.45; opacity: .85; }
.bg-list { list-style: none; width: 100%; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bg-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; line-height: 1.3;
  background: #fff; border: 2px solid var(--px-ink); border-radius: 10px; }
.bg-ico { flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #ffd34d; border: 2px solid var(--px-ink); border-radius: 8px; }
.bg-err { width: 100%; padding: 8px 10px; font-size: 12px; font-weight: 800; color: #8a2b20; background: #ffe8e2; border: 2px solid #c4382f; border-radius: 8px; }
.bg-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; cursor: pointer;
  font-family: var(--font-head); font-size: 16px; color: #fff; text-shadow: 0 1px 0 var(--px-ink);
  background: linear-gradient(180deg, #5fc56b, #2f8a3d); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--px-ink); }
.bg-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--px-ink); }
.bg-btn:disabled { opacity: .7; }
.bg-btn--ghost { color: var(--px-ink); text-shadow: none; background: #fff; font-size: 14px; }
.bg-note { font-size: 11px; opacity: .65; line-height: 1.35; }
.bg-card [hidden] { display: none !important; }

/* ---- dispensar jogador ---- */
.mk-btn--danger { color: #b3392c; text-shadow: none; background: #fff1ee; }
/* perfil do clube: os 5 níveis do relatório ficam escondidos (toca para ver) */
.cp-scout-more { width: 100%; text-align: center; }
.cp-scout-more summary { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 10px; color: #2b55a8; background: rgba(43,85,168,.1); border-radius: 6px; }
.cp-scout-more summary::-webkit-details-marker { display: none; }
.cp-scout-more summary::after { content: "▾"; }
.cp-scout-more[open] summary::after { content: "▴"; }
.cp-scout-more .cp-scout-levels { display: block; margin-top: 6px; }
/* fim de temporada: prémio proporcional de quem entrou a meio */
.se-prize-part { display: block; max-width: 240px; margin: -2px auto 2px; font-size: 11px; line-height: 1.3; text-align: center; opacity: .85; }
/* tarefas: a ampulheta do baú era um ":" escuro no fundo escuro */
.tq-hero-reset .px-icon rect { fill: #ffe17a; }
.mk-empty { text-align: center; line-height: 1.35; }
.mk-empty-cta { margin-top: 4px; padding: 8px 18px; }
.mk-empty-cta .px-icon rect { fill: #fff; }
.pd-footer { gap: 6px; }
.pd-footer .mk-btn--danger { flex: 0 1 auto; }
.rl-warn { display: inline-block; padding: 6px 8px; font-size: 12px; color: #8a2b20; background: #ffe8e2; border: 2px solid #c4382f; border-radius: 6px; }

/* =========================================================
   AVISOS "à jogo" (showError / showInfo — app.js)
   sempre por cima de qualquer popup (antes o "Ouro insuficiente" ficava
   escondido atrás do popup de criar torneio)
   ========================================================= */
#confirm-popup { z-index: 20000; }
.popup-box--err, .popup-box--info { padding-top: 0 !important; overflow: hidden; text-align: center; animation: errIn .32s cubic-bezier(.2,1.6,.4,1) both; }
.popup-box--err::before, .popup-box--info::before { display: none; }
@keyframes errIn { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.err-pop { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 -20px 4px; padding: 14px 18px 6px;
  background: radial-gradient(ellipse at 50% 0%, #ffe9b0 0%, rgba(255,233,176,0) 70%); }
.popup-box--err .err-pop { background: radial-gradient(ellipse at 50% 0%, #ffd2c2 0%, rgba(255,210,194,0) 70%); }
.err-art { width: 120px; height: 112px; display: grid; place-items: center; position: relative; }
.err-art::after { content: ""; position: absolute; bottom: 4px; left: 28px; right: 28px; height: 10px; border-radius: 50%; background: rgba(16,37,26,.18); z-index: 0; }
.err-art > * { position: relative; z-index: 1; animation: errBob 2.2s ease-in-out infinite; }
.err-art > .art-icon { width: 104px; height: 104px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(16,37,26,.25)); }
@keyframes errBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.err-title { font-family: var(--font-head); font-size: 18px; line-height: 1.2; color: var(--px-ink); letter-spacing: .3px; }
.err-hint { font-size: 12.5px; line-height: 1.4; color: #5b4a2b; max-width: 280px; }
.popup-box--err .popup-actions, .popup-box--info .popup-actions { flex-direction: column; gap: 8px; }
.popup-box--err #popup-confirm, .popup-box--info #popup-confirm {
  width: 100%; padding: 12px 10px; font-family: var(--font-head); font-size: 15px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe17a, #f0b93a) !important; border: 3px solid var(--px-ink) !important; border-radius: 10px !important;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 5px 0 #050f09 !important;
}
.popup-box--err #popup-cancel, .popup-box--info #popup-cancel { width: 100%; }
html[data-quality="low"] .err-art > * { animation: none; }

/* =========================================================
   ESPÍRITO DA EQUIPA (menu_spirit.js) — moral, treino, evolução, capitão
   ========================================================= */
.tg-chips { display: inline-flex; gap: 5px; align-items: center; }
.tg-morale { pointer-events: auto; cursor: pointer; padding: 2px 6px; gap: 4px; font-size: 16px; line-height: 1; }
.tg-morale .art-icon { width: 24px; height: 24px; margin: -4px 0; image-rendering: pixelated; }
.tg-morale-bar { width: 26px; height: 6px; background: rgba(0,0,0,.45); border: 1px solid var(--px-ink); border-radius: 2px; overflow: hidden; }
.tg-morale-bar i { display: block; height: 100%; background: #4fd16b; }
.tg-morale--mid .tg-morale-bar i { background: #f0b93a; }
.tg-morale--low .tg-morale-bar i { background: #e5484d; }
.tg-morale--low { animation: tgPulse 1.6s ease-in-out infinite; }
@keyframes tgPulse { 50% { box-shadow: 0 0 0 3px rgba(229,72,77,.45); } }
.tg-xp { position: absolute; left: 50%; top: -6px; z-index: 5; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--font-head); font-size: 12px; color: #9cf0ad; text-shadow: 0 2px 0 var(--px-ink); animation: tgXp 2.1s ease-out both; }
@keyframes tgXp { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
.tg-fab-badge { font-size: 8px; }

/* desafio (cartão do amigável) */
.hp-challenge { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; cursor: pointer;
  font-family: var(--font-head); font-size: 11px; color: #fff; text-shadow: 0 1px 0 var(--px-ink);
  background: linear-gradient(180deg, #8a5bd6, #6237ad); border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 2px 0 var(--px-ink); }
.hp-challenge:active { transform: translateY(2px); box-shadow: none; }

/* janela do espírito da equipa */
.sp-box { text-align: center; }
.sp-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -14px -12px 10px; padding: 18px 12px 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,209,107,.35), transparent 70%); }
.sp-hero--mid { background: radial-gradient(ellipse at 50% 0%, rgba(240,185,58,.35), transparent 70%); }
.sp-hero--low { background: radial-gradient(ellipse at 50% 0%, rgba(229,72,77,.35), transparent 70%); }
.sp-face { font-size: 56px; line-height: 1; animation: errBob 2.2s ease-in-out infinite; }
.sp-face .art-icon { width: 76px; height: 76px; image-rendering: pixelated; }
.sp-hero b { font-family: var(--font-head); font-size: 20px; text-shadow: 0 2px 0 var(--px-ink); }
.sp-hero small { font-size: 12px; opacity: .85; }
.sp-meter { width: 70%; height: 10px; background: rgba(0,0,0,.4); border: 2px solid var(--px-ink); border-radius: 4px; overflow: hidden; }
.sp-meter i { display: block; height: 100%; background: linear-gradient(90deg, #e5484d, #f0b93a 45%, #4fd16b 75%); }
.sp-rules { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.sp-rules span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; font-size: 18px;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.15); border-radius: 10px; }
.sp-rules b { font-family: var(--font-head); font-size: 15px; color: #ffe17a; }
.sp-rules small { font-size: 10px; opacity: .8; }
.sp-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.1); border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 #050f09; }
.sp-row:active { transform: translateY(2px); box-shadow: none; }
.sp-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sp-row b { font-family: var(--font-head); font-size: 14px; }
.sp-row small { font-size: 11px; opacity: .8; line-height: 1.3; }
.sp-go { font-style: normal; font-family: var(--font-head); font-size: 22px; color: #ffe17a; }

/* subiu de nível */
.lu-popup { z-index: 15000; }
.lu-box { text-align: center; overflow: hidden; }
.lu-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255,225,122,.18) 0 10deg, transparent 10deg 20deg);
  animation: luSpin 12s linear infinite; pointer-events: none; }
@keyframes luSpin { to { transform: rotate(360deg); } }
.lu-art { position: relative; display: inline-flex; animation: errIn .45s cubic-bezier(.2,1.6,.4,1) both; }
.lu-art .art-icon { width: 96px; height: 96px; image-rendering: pixelated; }
.lu-title { position: relative; font-family: var(--font-head); font-size: 22px; color: #ffe17a; text-shadow: 0 3px 0 var(--px-ink); margin: 4px 0 10px; }
.lu-list { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lu-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,.1); border: 2px solid var(--px-ink); border-radius: 9px; }
.lu-row b { flex: 1; text-align: left; font-size: 13px; }
.lu-pos { font-family: var(--font-head); font-size: 10px; padding: 1px 5px; border-radius: 4px; color: var(--px-ink); background: #ffe17a; }
.lu-ovr { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 16px; }
.lu-ovr s { opacity: .55; font-size: 13px; } .lu-ovr em { font-style: normal; color: #9cf0ad; }
.lu-box .tx-cta { position: relative; }

/* evolução: barra de XP + margem de crescimento */
.gr { display: inline-flex; align-items: center; gap: 4px; }
.gr-bar { width: 64px; height: 7px; background: rgba(16,37,26,.18); border: 1.5px solid var(--px-ink); border-radius: 3px; overflow: hidden; }
.gr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5fd3ff, #4f8bff); }
.gr-room { font-family: var(--font-head); font-size: 10px; color: #1f8a3c; }
.gr--max b { font-family: var(--font-head); font-size: 9px; padding: 0 5px; color: var(--px-ink); background: #ffe17a; border: 1.5px solid var(--px-ink); border-radius: 4px; }
.gr--sm .gr-bar { width: 46px; height: 6px; }
.gr-pot { font-family: var(--font-head); font-size: 10px; font-weight: 400; white-space: nowrap; padding: 0 4px; color: #fff; background: #4f8bff; border: 1.5px solid var(--px-ink); border-radius: 4px; }
.gr-pot.is-exact { color: var(--px-ink); background: linear-gradient(180deg, #ffe17a, #f0b93a); }
.gr--sm .gr-pot { font-size: 8.5px; padding: 0 3px; }
.gr--max .gr-pot { margin-left: 2px; }
.pd-pot-note { font-size: 10px !important; font-style: italic; opacity: .8; }
.pd-pot-btn { align-self: flex-start; margin-top: 3px; padding: 4px 8px; font-size: 11px; }
.cp-pot { flex: none; padding: 0 4px; font-family: var(--font-head); font-size: 9px; color: #fff; background: #4f8bff; border: 1.5px solid var(--px-ink); border-radius: 3px; }
.sc-pot { position: relative; padding: 2px 10px; font-family: var(--font-head); font-size: 12px; color: #fff; background: #2a5fc8; border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 2px 0 var(--px-ink);
  animation: scPop .4s steps(4) 1.1s both; }
.sc-reveal--legendary .sc-pot, .sc-reveal--mythic .sc-pot { animation-delay: 1.9s; }
.sq2-cap { position: absolute; left: 2px; bottom: 2px; }
.sq2-up { position: absolute; right: 2px; bottom: 2px; display: inline-flex; padding: 1px; background: #4fd16b; border: 1.5px solid var(--px-ink); border-radius: 4px; animation: tgPulse 1.4s ease-in-out infinite; }
.cap-badge { display: inline-flex; align-items: center; justify-content: center; width: var(--s, 14px); height: var(--s, 14px);
  font-family: var(--font-head); font-size: calc(var(--s, 14px) * .62); line-height: 1; color: var(--px-ink); background: #ffd65c; border: 1.5px solid var(--px-ink); border-radius: 4px; box-shadow: 0 1px 0 var(--px-ink); }
.lead-stars { font-size: 11px; letter-spacing: -1px; color: #f0b93a; text-shadow: 0 1px 0 var(--px-ink); }
.lead-stars i { font-style: normal; color: rgba(16,37,26,.18); text-shadow: none; }

/* ficha do jogador: evolução + liderança */
.pd-growth { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 10px; text-align: left; background: #eaf6ff; border: 2px solid var(--px-ink); border-radius: 10px; }
.pd-growth-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pd-growth-body b { font-family: var(--font-head); font-size: 13px; color: var(--px-ink); }
.pd-growth-body small { font-size: 10.5px; color: #4a5a52; }
.pd-growth .gr-bar { width: 100%; max-width: 150px; height: 8px; }
.pd-pot { font-style: normal; font-size: 10px; padding: 0 4px; margin-left: 4px; color: #fff; background: #4f8bff; border-radius: 4px; }
.pd-lead { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pd-lead small { font-size: 9px; color: #4a5a52; }

/* capitão na tática */
.tac-cap { position: absolute; left: 2px; top: 2px; z-index: 3; }
.abs-badge { display: inline-flex; align-items: center; gap: 1px; padding: 0 3px; height: 15px; font-style: normal; font-family: var(--font-head); font-size: 9px; line-height: 1; color: #fff;
  border: 1.5px solid var(--px-ink); border-radius: 3px; box-shadow: 0 1px 0 var(--px-ink); }
.abs-badge b { font-weight: 400; font-size: 9px; }
.abs-badge--injury { background: #d8433b; }
.abs-badge--ban { background: linear-gradient(180deg, #ff5a4a, #c8102e); min-width: 11px; justify-content: center; border-radius: 2px; }
.tac-abs { position: absolute; right: 2px; top: 2px; z-index: 3; }
.tac-slot .tac-abs { top: 24px; right: 0; }
.tac-bench-card .tac-abs { top: auto; bottom: 16px; right: 2px; }
.sq2-abs { position: absolute; left: 2px; bottom: 2px; z-index: 3; }
.tac-bench-card { position: relative; }
.tac-bench-card.is-out { opacity: .55; filter: grayscale(.5); }
.tac-abs-help { color: #c8102e; }
.pd-abs { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px auto 2px; padding: 5px 10px; width: fit-content; font-size: 12px; font-weight: 700; color: #8a1b14; background: #ffe3df; border: 2px solid #d8433b; border-radius: 8px; }
.tac-ment { margin: 10px 0 2px; text-align: left; }
.tac-ment-label { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; font-family: var(--font-head); font-size: 11px; color: var(--px-ink); }
.tac-ment-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tac-ment-pill { min-width: 0; padding: 7px 2px 6px; font-family: var(--font-head); font-size: 10px; color: var(--px-ink); background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 3px 0 var(--px-ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tac-ment-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--px-ink); }
.tac-ment-pill.active { color: #fff; text-shadow: 0 1px 0 var(--px-ink); }
.tac-ment-pill--balanced.active { background: linear-gradient(180deg, #57c26a, #2f8f45); }
.tac-ment-pill--attack.active { background: linear-gradient(180deg, #ff7a5c, #d6491f); }
.tac-ment-pill--defend.active { background: linear-gradient(180deg, #6fa8ff, #2a5fc8); }
.tac-ment-pill--press.active { background: linear-gradient(180deg, #ffb84d, #d68a12); }
.tac-ment-desc { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.35; color: #4a5a52; }
.tr-box { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.tr-title { margin-bottom: 4px; font-family: var(--font-head); font-size: 20px; color: var(--gold-bright, #ffe17a); text-align: center; text-shadow: 0 2px 0 var(--px-ink); }
.tr-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; font: inherit; color: var(--px-ink); cursor: pointer;
  background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.tr-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--px-ink); }
.tr-opt-ico { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.tr-opt-text { display: flex; flex-direction: column; gap: 2px; }
.tr-opt-text b { font-family: var(--font-head); font-size: 14px; font-weight: 400; }
.tr-opt-text small { font-size: 11px; line-height: 1.3; color: #4a5a52; }
.tr-opt--hard { background: linear-gradient(90deg, #ffe3d6, #fbf8ea 70%); }
.tr-opt--recovery { background: linear-gradient(90deg, #dff3ff, #fbf8ea 70%); }
.lg-obj { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 7px 10px; background: #fbf8ea; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.lg-obj.is-ok { background: linear-gradient(90deg, #e3f7e6, #fbf8ea 70%); }
.lg-obj.is-bad { background: linear-gradient(90deg, #ffe3df, #fbf8ea 70%); }
.lg-obj-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.lg-obj-body small { font-family: var(--font-head); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #8a5d00; }
.lg-obj-body b { font-size: 13px; color: var(--px-ink); }
.lg-obj-body em { font-style: normal; font-size: 10.5px; color: #4a5a52; }
.lg-obj.is-bad .lg-obj-body em { color: #b3261e; }
.lg-obj-prize { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; font-family: var(--font-head); font-size: 12px; color: var(--px-ink); background: linear-gradient(180deg, #ffe17a, #f0b93a); border: 2px solid var(--px-ink); border-radius: 8px; }
.se-obj { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0; padding: 5px 8px; font-size: 12px; font-weight: 700; border-radius: 8px; }
.se-obj.is-met { color: #1f6b33; background: #e3f7e6; }
.se-obj.is-failed { color: #8a1b14; background: #ffe3df; }
.cap-box { margin: 10px 0; padding: 8px; background: #fff8e2; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 rgba(16,37,26,.25); }
.cap-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--px-ink); }
.cap-head span { display: flex; flex-direction: column; }
.cap-head b { font-family: var(--font-head); font-size: 13px; }
.cap-head small { font-size: 11px; color: #5b4a2b; }
.cap-chips { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cap-chip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 56px; padding: 4px 5px; cursor: pointer;
  font: inherit; color: var(--px-ink); background: #fff; border: 2px solid var(--px-ink); border-radius: 8px; }
.cap-chip b { font-size: 10px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-chip.is-on { background: #ffe17a; box-shadow: 0 0 0 2px #f0b93a; }
.cap-pos { font-family: var(--font-head); font-size: 9px; padding: 0 4px; color: #fff; background: #3a6a4c; border-radius: 3px; }

/* desafio a um amigo */
.ch-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ch-art { animation: errBob 2.2s ease-in-out infinite; }
.ch-art .art-icon { width: 88px; height: 88px; image-rendering: pixelated; }
.ch-title { font-family: var(--font-head); font-size: 20px; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.ch-sub { font-size: 12px; opacity: .85; line-height: 1.35; max-width: 300px; }
.ch-input { width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; text-align: center; color: var(--px-ink); background: #fffbe8; border: 3px solid var(--px-ink); border-radius: 10px; }
.ch-rules { display: flex; justify-content: space-between; width: 100%; font-size: 11px; opacity: .8; }
.ch-rules span { display: inline-flex; align-items: center; gap: 3px; }
.rs2-tag--ch { background: #6237ad !important; color: #fff !important; }

/* =========================================================
   JORNAL 7RISE (menu_news.js)
   ========================================================= */
.nw-mast { margin: 4px 0 10px; text-align: center; color: var(--px-ink); }
.nw-mast-name { display: block; font-family: var(--font-head); font-size: 28px; letter-spacing: 2px; text-shadow: 0 3px 0 rgba(16,37,26,.18); }
.nw-mast-line { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: capitalize; color: #5b4a2b; }
.nw-mast-line i { flex: 1; height: 0; border-top: 3px double var(--px-ink); }
.nw-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px; color: var(--px-ink);
  background: #fffdf3; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 rgba(16,37,26,.28); }
.nw-card.is-tap { cursor: pointer; } .nw-card.is-tap:active { transform: translateY(2px); box-shadow: none; }
.nw-card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--nw, #3a6a4c); }
.nw-card--gold { --nw: #f0b93a; } .nw-card--green { --nw: #2f9a4c; } .nw-card--red { --nw: #e5484d; } .nw-card--blue { --nw: #4f8bff; } .nw-card--purple { --nw: #8a5bd6; }
.nw-card.is-mine { background: #fff4cc; }
.nw-art { flex-shrink: 0; display: grid; place-items: center; width: 54px; height: 54px; }
.nw-art .art-icon { width: 52px; height: 52px; image-rendering: pixelated; }
.nw-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-kicker { font-family: var(--font-head); font-size: 9px; letter-spacing: .8px; text-transform: uppercase; color: var(--nw, #3a6a4c); }
.nw-kicker em { font-style: normal; color: #b47a00; }
.nw-kicker .nw-tag--rival { color: #c0392b; }
.nw-kicker .nw-tag--friend { color: #2f7fd0; }
.nw-kicker .nw-tag--top { color: #8a5cd6; }
.nw-title { font-size: 14px; line-height: 1.25; font-weight: 700; }
.nw-title b { font-weight: 800; color: #10251a; }
.nw-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 11px; color: #5b5b4b; }
.nw-crests { display: inline-flex; gap: 2px; margin-right: 2px; }
.nw-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nw-side small { font-size: 10px; color: #7a7a6a; white-space: nowrap; }
.nw-cta { font-style: normal; font-family: var(--font-head); font-size: 10px; padding: 4px 7px; color: var(--px-ink); background: #ffe17a; border: 2px solid var(--px-ink); border-radius: 7px; box-shadow: 0 2px 0 var(--px-ink); }
.nw-go { font-style: normal; font-family: var(--font-head); font-size: 20px; color: var(--nw, #3a6a4c); }
.nw-card--hero { flex-direction: column; text-align: center; padding: 14px 12px 12px; background: linear-gradient(180deg, #fffdf3, #fff3cf); }
.nw-card--hero::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 4px; border-radius: 0 0 3px 3px; }
.nw-card--hero .nw-art { width: 92px; height: 92px; }
.nw-card--hero .nw-art .art-icon { width: 86px; height: 86px; }
.nw-card--hero .nw-title { font-size: 18px; }
.nw-card--hero .nw-sub { justify-content: center; }
.nw-card--hero .nw-side { position: absolute; top: 8px; right: 10px; }
.nw-more { width: 100%; justify-content: center; margin: 4px 0 14px; }
.nw-amt, .nw-score { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-size: inherit; }
.nw-score { font-weight: 800; }
.nw-empty { color: rgba(16,37,26,.6); }
.nw-empty-cta { margin-top: 10px; }
.nw-rar { display: inline-block; padding: 0 5px; border-radius: 4px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.nw-rar--epic { background: #8e44d0; } .nw-rar--legendary { background: linear-gradient(90deg, #e0a21c, #f6d365); color: #3a2a00; } .nw-rar--mythic { background: linear-gradient(90deg, #d6491f, #ff4fb0, #6c5ce7); }
.nw-md { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.nw-md-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nw-md-row em { flex-shrink: 0; min-width: 26px; font-style: normal; font-size: 10px; font-weight: 800; color: #2a5fc8; }
.nw-md-row b { min-width: 0; max-width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.nw-md-row.is-real b { font-weight: 800; color: var(--px-ink); }

/* o rótulo do banco ficava tapado pelos jogadores sentados (os Zz já dizem que descansam) */
.tg-bench span { display: none; }

/* ---- Início: zona JOGAR v3 — Liga larga em cima, Amigável | Torneios em baixo ---- */
.hub-playz { display: flex; flex-direction: column; gap: 10px; }
.hub-play { align-items: stretch; }
.hub-play > .hp-card { min-height: 0; }
.hl {
  overflow: hidden; min-height: 0; align-items: stretch; gap: 8px; padding: 9px 10px 10px; text-align: left;
  /* estádio à noite (hub_league_bg.webp) + véu escuro ao meio para o texto ler-se;
     sem a imagem fica o degradé azul de baixo */
  background:
    linear-gradient(180deg, rgba(8,18,42,.18) 0%, rgba(8,18,42,.52) 42%, rgba(8,18,42,.46) 72%, rgba(8,18,42,.12) 100%),
    url('images/ui/hub_league_bg.webp') center 38% / cover no-repeat,
    linear-gradient(180deg, #2f5aa0 0%, #1d3a6e 58%, #132b55 100%);
}
.hl .hl-team b { text-shadow: 0 1px 0 var(--px-ink), 0 0 6px rgba(5,15,9,.9); }
.hl-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hl-chip { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px;
  font-family: var(--font-head); font-size: 10px; letter-spacing: .4px; color: #ffe17a; background: rgba(0,0,0,.35); border: 1px solid rgba(255,225,122,.45); border-radius: 6px; }
.hl-main { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; }
.hl-cup { position: relative; flex-shrink: 0; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,225,122,.42) 0%, rgba(255,225,122,.12) 50%, transparent 70%); }
.hl-cup .art-icon, .hl-cup img { filter: drop-shadow(0 3px 0 rgba(5,15,9,.55)); }
.hl-cup.is-off { background: none; }
.hl-cup.is-off > :first-child { filter: grayscale(1) brightness(.75); }
.hl-cup > i { position: absolute; right: 2px; bottom: 2px; font-style: normal; }
.hl-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-info small { font-family: var(--font-head); font-size: 10px; letter-spacing: .6px; opacity: .8; text-transform: uppercase; }
.hl-info b { font-family: var(--font-head); font-size: 21px; font-weight: 400; line-height: 1.05; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.hl-info b.is-sm { font-size: 14px; color: #fff; line-height: 1.2; }
.hl-info span { font-size: 12px; opacity: .92; }
.hl-match { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.hl-team { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hl-team b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 12px; font-weight: 400; text-shadow: 0 1px 0 var(--px-ink); }
.hl-crest { box-shadow: 0 3px 0 rgba(5,15,9,.55); }
.hl-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hl-vs { font-family: var(--font-head); font-size: 22px; font-weight: 400; line-height: 1; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink), 0 0 10px rgba(255,225,122,.45); }
.hl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 3px; }
.hl-last {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 9px; cursor: pointer;
  background: rgba(0,0,0,.42); border: 2px solid rgba(255,255,255,.18); border-radius: 9px;
}
.hl-last small { flex-shrink: 0; font-family: var(--font-head); font-size: 8px; letter-spacing: .5px; text-transform: uppercase; opacity: .75; }
.hl-last-opp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.hl-last-opp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 11px; font-weight: 400; }
.hl-last-sc { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; font-style: normal; font-family: var(--font-head); font-size: 14px; color: var(--px-ink); background: #fff; border: 2px solid var(--px-ink); border-radius: 6px; }
.hl-last-sc i { padding: 0 4px; font-style: normal; font-size: 10px; color: #fff; border-radius: 3px; background: #8a95a3; }
.hl-last--w .hl-last-sc i { background: #23843a; } .hl-last--l .hl-last-sc i { background: #c4382f; }
.hl-last-go { flex-shrink: 0; padding: 4px 8px; font-family: var(--font-head); font-size: 10px; color: var(--px-ink); background: linear-gradient(180deg, #ffe98f, #f0b93a); border: 2px solid var(--px-ink); border-radius: 6px; }
.hl-last.is-new { border-color: #ffe17a; box-shadow: 0 0 0 1px rgba(255,225,122,.35), 0 0 12px rgba(255,225,122,.45); animation: hlLastPulse 1.6s ease-in-out infinite; }
@keyframes hlLastPulse { 50% { box-shadow: 0 0 0 1px rgba(255,225,122,.15), 0 0 4px rgba(255,225,122,.15); } }
@media (prefers-reduced-motion: reduce) { .hl-last.is-new { animation: none; } }
.hl-foot .hp-cta { margin: 0; flex-shrink: 0; padding: 6px 12px; font-size: 12px; }
.hl-timer { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 3px 9px 4px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,225,122,.5); border-radius: 8px; }
.hl-mid .hl-timer { align-items: center; padding: 2px 7px 3px; }
.hl-timer small { font-family: var(--font-head); font-size: 8px; letter-spacing: .5px; opacity: .8; text-transform: uppercase; }
.hl-timer b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #ffe17a; letter-spacing: 1px; text-shadow: 0 2px 0 var(--px-ink); }
.hl-timer.is-live { flex-direction: row; align-items: center; gap: 5px; background: #d8433b; border-color: var(--px-ink); }
.hl-timer.is-live b { color: #fff; font-size: 13px; }
.hl-timer.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tgBadge 1s infinite; }
.hl-stand { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: rgba(0,0,0,.3); border: 2px solid rgba(16,37,26,.6); border-radius: 8px; }
.hl-stand > b { font-family: var(--font-head); font-size: 17px; font-weight: 400; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.hl-stand > small { font-size: 10px; opacity: .85; }
.hp-streak { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 6px; font-style: normal; font-family: var(--font-head); font-size: 11px; color: #fff; background: linear-gradient(180deg, #ff8a3d, #d6491f); border: 1.5px solid var(--px-ink); border-radius: 999px; vertical-align: middle; }
.hl-prize { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; color: #ffe17a; background: rgba(240,185,58,.18); border: 1px solid rgba(255,225,122,.55); border-radius: 6px; }
.hl-prize b { font-family: var(--font-head); font-weight: 400; font-size: 11px; }
/* torneios: taça ao centro, botões em baixo (mesma altura que o Amigável) */
.hub-play .hp-card--tour { justify-content: space-between; gap: 6px; padding: 10px 8px; }
.hub-play .hp-card--tour .hp-head { font-size: 14px; }
.hp-tour-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 70px;
  background: radial-gradient(circle, rgba(255,225,122,.35) 0%, transparent 62%); }
.hp-tour-art > * { filter: drop-shadow(0 3px 0 rgba(5,15,9,.5)); }
.hp-tour-sub { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; font-size: 11px; background: rgba(0,0,0,.25); border-radius: 6px; }
.hp-tour-sub b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #ffe17a; }
.hp-tour-btns { flex-direction: column; }
.hp-tour-btns button { padding: 7px 2px; font-size: 12px; }
.hp-tour-btns .hp-tour-new { color: #fff; text-shadow: 0 1px 0 var(--px-ink); background: linear-gradient(180deg, #3fb257, #23843a); }
.hp-tour-btns .hp-tour-new .px-icon rect { fill: #fff; }
.hp-tour-btns button:active { transform: translateY(2px); box-shadow: none; }
/* mercado: quanto o jogador ainda pode crescer */
.mk-fig { position: relative; }
.mk-room { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-family: var(--font-head); font-size: 8px; line-height: 10px; padding: 0 3px; color: #fff; background: #2f9a4c; border: 1px solid var(--px-ink); border-radius: 3px; }
.mk-room.is-max { background: #b8862a; }
/* =========================================================
   RONDA "ÉPICO" — Liga com estádio, fitas de secção, brilho nos botões
   principais, entrada dos ecrãs e carregamento com bola
   ========================================================= */
/* ---- LIGA: topo com o estádio à noite e a taça da divisão grande ---- */
.lg-hero {
  position: relative; overflow: hidden; padding: 10px 12px 12px;
  background:
    linear-gradient(180deg, rgba(8,18,42,.22) 0%, rgba(8,18,42,.58) 52%, rgba(8,18,42,.4) 100%),
    url('images/ui/hub_league_bg.webp') center 35% / cover no-repeat,
    linear-gradient(180deg, #164a2c, #0d2b17);
}
.lg-hero .lg-season { padding: 3px 8px; font-size: 11px; color: #ffe17a; background: rgba(0,0,0,.42); border: 1px solid rgba(255,225,122,.45); border-radius: 6px; }
.lg-hero .lg-clock { padding: 3px 8px; font-family: var(--font-head); font-size: 10px; color: #fff; background: rgba(0,0,0,.42); border-radius: 6px; }
.lg-hero .lg-clock .px-icon rect { fill: #ffe17a; }
.lg-hero .lg-mydiv, .lg-hero .lg-mydiv--d1 { gap: 12px; padding: 2px 0 0; background: none; border: 0; }
.lg-hero .lg-mydiv-ico { width: 78px; height: 78px; background: radial-gradient(circle, rgba(255,225,122,.48) 0%, rgba(255,225,122,.12) 50%, transparent 70%); border: 0; }
.lg-hero .lg-mydiv-ico img { filter: drop-shadow(0 3px 0 rgba(5,15,9,.55)); }
.lg-hero .lg-mydiv--out .lg-mydiv-ico { background: none; }
.lg-hero .lg-mydiv-text b { font-size: 19px; line-height: 1.1; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.lg-hero .lg-mydiv-text small { font-size: 12px; color: #fff; text-shadow: 0 1px 0 var(--px-ink); }
.lg-hero .lg-last { color: rgba(255,255,255,.88); text-shadow: 0 1px 0 var(--px-ink); }
/* ---- LIGA: próximo jogo num relvado (meio-campo + círculo atrás do VS) ---- */
.lg-next {
  position: relative; overflow: hidden; color: #fff; padding: 9px 10px 0;
  background:
    linear-gradient(180deg, rgba(8,40,18,.05), rgba(8,40,18,.35)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 40px, rgba(0,0,0,.04) 40px 80px),
    url('images/field/pitch-turf-1.png') 0 0 / 90px 43px repeat, #3c8a37;
}
.lg-next::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.5); }
.lg-next::after { content: ""; position: absolute; left: 50%; top: 92px; width: 86px; height: 86px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.lg-next > * { position: relative; z-index: 1; }
.lg-next-head { color: #fff; }
.lg-next-head > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 10px; background: rgba(16,37,26,.8); border-radius: 6px; }
.lg-next-head > span .px-icon rect { fill: #ffe17a; }
.lg-next-vs { margin: 8px 0 10px; }
.lg-next-team b { font-size: 12px; color: #fff; text-shadow: 0 1px 0 var(--px-ink), 0 0 6px rgba(5,15,9,.7); }
.lg-next .lg-crest { box-shadow: 0 3px 0 rgba(5,15,9,.55); }
.lg-next-x { font-size: 28px; color: #ffe17a; text-shadow: 0 3px 0 var(--px-ink), 0 0 12px rgba(255,225,122,.55); }
.lg-next-foot { margin: 0 -10px; padding: 8px 10px; font-size: 11px; color: #fff; background: rgba(16,37,26,.85); border-top: 2px solid var(--px-ink); }
.lg-next-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lg-kick { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-family: var(--font-head); font-size: 11px; color: #ffe17a; }
.lg-next-foot .lg-pays { flex: none; display: flex; flex-wrap: wrap; gap: 4px; }
.lg-pay-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 1px; font-style: normal; font-family: var(--font-head); font-size: 10px; color: #fff; background: rgba(255,255,255,.12); border-radius: 5px; }
.lg-pay-chip em { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 2px; font-style: normal; font-size: 9px; color: #fff; border-radius: 4px; }
.lg-pay-chip--w em { background: #2f9a4c; } .lg-pay-chip--d em { background: #8a96a0; } .lg-pay-chip--l em { background: #d8433b; }
.lg-next-tac { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
.lg-scout { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0 0 9px; padding: 6px 8px; font: inherit; color: #fff; text-align: left; cursor: pointer;
  background: rgba(16,37,26,.78); border: 2px solid var(--px-ink); border-radius: 9px; box-shadow: 0 3px 0 rgba(5,15,9,.55); }
.lg-scout:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(5,15,9,.55); }
.lg-scout .px-icon rect { fill: #ffe17a; }
.lg-scout-txt { flex: 1; min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-scout-form { flex: none; display: inline-flex; gap: 3px; }
.lg-scout-form .md-form-dot { width: 16px; height: 16px; font-size: 9px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-width: 1.5px; box-shadow: none; }
.lg-scout-form .md-form-dot:last-child { outline-width: 1.5px; outline-offset: 1px; }
.lg-scout-go { flex: none; padding: 3px 7px; font-family: var(--font-head); font-size: 10px; font-weight: 400; color: var(--px-ink); background: linear-gradient(180deg, #ffe17a, #f0b93a); border: 2px solid var(--px-ink); border-radius: 6px; }

/* ---- títulos de secção em fita (Loja, Tarefas, Amigos, Câmbio) ---- */
.px-sec > span:first-child, .shop-sec > span:first-child, .tq-sec > span:first-child {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 10px;
  font-family: var(--font-head); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: #ffe17a; text-shadow: 0 1px 0 var(--px-ink);
  background: linear-gradient(180deg, #1f6b3a, #134526); border: 2px solid var(--px-ink); border-radius: 4px 14px 14px 4px; box-shadow: 0 2px 0 var(--px-ink);
}
.tq-sec--ready > span:first-child { color: var(--px-ink); text-shadow: none; background: linear-gradient(180deg, #ffe17a, #f0b93a); }
.tq-sec--done > span:first-child { color: #fff; background: linear-gradient(180deg, #9aa4ab, #77828a); }
.shop-sec { margin-top: 6px; }

/* ---- brilho que passa nos botões principais (JOGAR, Convidar, Criar torneio...) ---- */
.hp-play:not(:disabled), .md-play:not([disabled]), .tr-create, .tg-empty-cta, .se-claim { position: relative; overflow: hidden; }
.hp-play:not(:disabled)::after, .md-play:not([disabled])::after, .tr-create::after, .tg-empty-cta::after, .se-claim::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
  transform: skewX(-18deg); animation: ctaShine 3.4s ease-in-out infinite;
}
@keyframes ctaShine { 0%, 64% { left: -60%; } 100% { left: 135%; } }

/* ---- entrada dos ecrãs: os cartões sobem, um a seguir ao outro (só ao navegar) ---- */
.scr-in :is(.panel-main > :not(.hub2):not(.shop), .hub2 > *, .shop > *) { animation: scrIn .34s cubic-bezier(.2,.8,.3,1) both; }
.scr-in :is(.panel-main > :not(.hub2):not(.shop), .hub2 > *, .shop > *):nth-child(2) { animation-delay: .05s; }
.scr-in :is(.panel-main > :not(.hub2):not(.shop), .hub2 > *, .shop > *):nth-child(3) { animation-delay: .1s; }
.scr-in :is(.panel-main > :not(.hub2):not(.shop), .hub2 > *, .shop > *):nth-child(4) { animation-delay: .15s; }
.scr-in :is(.panel-main > :not(.hub2):not(.shop), .hub2 > *, .shop > *):nth-child(n+5) { animation-delay: .2s; }
@keyframes scrIn { from { opacity: 0; transform: translateY(14px); } }

/* ---- a carregar: bola a saltar em vez de só texto ---- */
.screen-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 10px; font-family: var(--font-head); font-size: 12px; color: rgba(16,37,26,.6); }
.screen-loading::before { content: ""; width: 30px; height: 30px; background: url('images/field/ball.png') center / contain no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 6px 2px rgba(16,37,26,.25)); animation: ldBall .55s cubic-bezier(.3,0,.7,1) infinite alternate; }
@keyframes ldBall { from { transform: translateY(0) rotate(0); } to { transform: translateY(-16px) rotate(160deg); } }

/* poupar bateria / qualidade baixa / menos movimento: sem brilhos nem entradas */
html[data-eco="on"] :is(.hp-play, .md-play, .tr-create, .tg-empty-cta, .se-claim)::after,
html[data-quality="low"] :is(.hp-play, .md-play, .tr-create, .tg-empty-cta, .se-claim)::after { display: none; }
html[data-eco="on"] .scr-in :is(.panel-main > *, .hub2 > *, .shop > *),
html[data-quality="low"] .scr-in :is(.panel-main > *, .hub2 > *, .shop > *) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  :is(.hp-play, .md-play, .tr-create, .tg-empty-cta, .se-claim)::after { display: none; }
  .scr-in :is(.panel-main > *, .hub2 > *, .shop > *) { animation: none !important; }
}

/* =========================================================
   RONDA "MODERNO" — Câmbio com tesouro, passos ilustrados nos torneios,
   fundo do jogo com riscas de relvado
   ========================================================= */
/* fundo: em vez do xadrez de site, relvado claro com riscas cortadas e luz por cima */
.app {
  background-color: #e3ecd0;
  background-image:
    radial-gradient(ellipse 140% 55% at 50% 0%, rgba(255,255,255,.6), transparent 62%),
    repeating-linear-gradient(90deg, rgba(47,143,69,.075) 0 46px, rgba(255,255,255,0) 46px 92px),
    linear-gradient(45deg, rgba(16,37,26,.025) 25%, transparent 25%, transparent 75%, rgba(16,37,26,.025) 75%),
    linear-gradient(45deg, rgba(16,37,26,.025) 25%, transparent 25%, transparent 75%, rgba(16,37,26,.025) 75%);
  background-size: auto, auto, 16px 16px, 16px 16px;
  background-position: 0 0, 0 0, 0 0, 8px 8px;
}
/* ---- CÂMBIO: os saldos como tesouro (moeda/gema grande a brilhar) ---- */
.ex-hero .ex-balances { gap: 10px; margin: 14px 0 12px; }
.ex-hero .ex-bal { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px 9px; text-align: center; border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: inset 0 3px 0 rgba(255,255,255,.18), 0 3px 0 var(--px-ink); }
.ex-hero .ex-bal--gems { background: radial-gradient(ellipse at 50% 0%, #3f7fd8 0%, #1f4c9a 60%, #163a78 100%); }
.ex-hero .ex-bal--gold { background: radial-gradient(ellipse at 50% 0%, #d9a23a 0%, #9a6a14 60%, #74500e 100%); }
.ex-hero .ex-bal-ico { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: radial-gradient(circle, rgba(255,255,255,.4) 0%, transparent 65%); }
.ex-hero .ex-bal-ico img { width: 40px; height: 40px; filter: drop-shadow(0 3px 0 rgba(5,15,9,.5)); animation: exFloat 2.4s ease-in-out infinite; }
.ex-hero .ex-bal--gold .ex-bal-ico img { animation-delay: -1.2s; }
@keyframes exFloat { 50% { transform: translateY(-4px); } }
.ex-hero .ex-bal b { font-size: 22px; color: #fff; }
.ex-hero .ex-bal small { font-size: 9px; color: rgba(255,255,255,.85); opacity: 1; }
.ex-hero .ex-rate { display: block; width: max-content; max-width: 100%; margin: 0 auto; padding: 3px 10px; background: rgba(0,0,0,.3); border-radius: 6px; }
.ex-hero { display: flex; flex-direction: column; }
/* carteira por ligar: a ilustração da carteira + botão grande */
.ex-connect { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ex-connect-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 66px; height: 66px;
  background: radial-gradient(circle, rgba(240,185,58,.35) 0%, transparent 65%); }
.ex-connect-art img { filter: drop-shadow(0 3px 0 rgba(16,37,26,.3)); }
.ex-connect .md-card-sub { margin: 0; font-size: 12px; line-height: 1.35; }
.ex-connect-btn { padding-top: 11px !important; padding-bottom: 11px !important; font-size: 15px !important; }
.ex-paused { border-color: var(--gold-dim, #c99a2e); background: #fff8e4; }
.ex-paused .ex-connect { margin: 0; }
.ex-paused .md-card-title { display: block; margin-bottom: 4px; }
/* ---- TORNEIOS: ícone grande nos cartões + "como funciona" em passos ilustrados ---- */
.tr-card-ico { flex: 0 0 48px; height: 48px; align-items: center; background: radial-gradient(circle, rgba(240,185,58,.3) 0%, transparent 68%); }
.tr-card-ico img { filter: drop-shadow(0 2px 0 rgba(16,37,26,.3)); }
.tr-how-sec { margin-top: 12px; }
.tr-how { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.tr-how-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--px-ink); background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow-sm, 0 3px 0 var(--px-ink)); }
.tr-how-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, #fffbe8, #efe4bb); border: 2px solid var(--px-ink); }
.tr-how-txt { font-size: 12px; line-height: 1.35; }
html[data-eco="on"] .ex-hero .ex-bal-ico img, html[data-quality="low"] .ex-hero .ex-bal-ico img { animation: none; }
@media (prefers-reduced-motion: reduce) { .ex-hero .ex-bal-ico img { animation: none; } }

/* =========================================================
   SUPORTE (js/menu_support.js) e CONTA SUSPENSA (js/ban.js)
   ========================================================= */
.hd-btn.has-dot { position: relative; overflow: visible; }
.hd-btn.has-dot::after { content: ""; position: absolute; top: -5px; right: -5px; z-index: 2; width: 12px; height: 12px; background: #e5484d; border: 2px solid var(--px-ink); border-radius: 50%; animation: tgBadge 1.6s ease-in-out infinite; }
.su-menu-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-right: 6px; padding: 0 5px; font-style: normal; font-family: var(--font-head); font-size: 10px; color: #fff; background: #e5484d; border: 2px solid var(--px-ink); border-radius: 9px; }
.su-menu-badge[hidden] { display: none; }
.su-layer { position: fixed; inset: 0; z-index: 19000; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto;
  background-color: #e3ecd0; background-image: radial-gradient(ellipse 140% 55% at 50% 0%, rgba(255,255,255,.6), transparent 62%), repeating-linear-gradient(90deg, rgba(47,143,69,.075) 0 46px, rgba(255,255,255,0) 46px 92px); }
.su-layer[hidden] { display: none; }
.su-top { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin: calc(8px + env(safe-area-inset-top)) 10px 0; padding: 7px 8px; color: #fff;
  background: linear-gradient(180deg, #164a2c, #0d2b17); border: 3px solid var(--px-ink); border-radius: 10px; box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 var(--px-ink); }
.su-back { flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--px-paper); border: 2px solid var(--px-ink); border-radius: 6px; box-shadow: 0 2px 0 #050f09; }
.su-back svg { transform: rotate(90deg); }
.su-top-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.su-top-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 16px; font-weight: 400; text-shadow: 0 2px 0 var(--px-ink); }
.su-body { flex: 1; overflow-y: auto; padding: 12px 10px calc(24px + env(safe-area-inset-bottom)); color: var(--px-ink); }
.su-hero { display: flex; align-items: center; gap: 10px; padding: 12px; color: #fff;
  background: radial-gradient(ellipse at 20% 0%, #2c7a45, #164a2c 60%, #0d2b17); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(240,185,58,.5), var(--px-shadow); }
.su-hero-art { flex-shrink: 0; display: flex; width: 76px; height: 76px; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,225,122,.4), transparent 65%); }
.su-hero-art img { filter: drop-shadow(0 3px 0 rgba(5,15,9,.5)); }
.su-hero-text b { display: block; margin-bottom: 3px; font-family: var(--font-head); font-size: 16px; font-weight: 400; color: #ffe17a; text-shadow: 0 2px 0 var(--px-ink); }
.su-hero-text small { display: block; font-size: 12px; line-height: 1.35; }
.su-new, .su-send { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; cursor: pointer;
  font-family: var(--font-head); font-size: 16px; letter-spacing: .5px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink); border-radius: 10px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--px-ink); }
.su-new:active, .su-send:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--px-ink); }
.su-new.is-off { filter: grayscale(.8); opacity: .7; }
.su-send:disabled { filter: grayscale(.6); opacity: .75; }
.su-note { margin-top: 6px; text-align: center; font-size: 11px; opacity: .8; }
.su-sec { margin: 14px 2px 8px; }
.su-list { display: flex; flex-direction: column; gap: 8px; }
.su-card { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; text-align: left; cursor: pointer; font: inherit; color: var(--px-ink);
  background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.su-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--px-ink); }
.su-card.is-unread { background: #fff4cc; }
.su-card-art { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: radial-gradient(circle at 50% 35%, #fffbe8, #efe4bb); border: 2px solid var(--px-ink); border-radius: 10px; }
.su-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.su-card-top { display: flex; align-items: center; gap: 6px; }
.su-card-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-size: 14px; font-weight: 400; }
.su-card-meta { font-size: 11px; opacity: .7; }
.su-dot { flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px; font-style: normal; font-family: var(--font-head); font-size: 10px; line-height: 15px; text-align: center; color: #fff; background: #e5484d; border: 2px solid var(--px-ink); border-radius: 9px; }
.su-chip { flex-shrink: 0; align-self: flex-start; padding: 2px 7px; font-family: var(--font-head); font-size: 10px; border: 2px solid var(--px-ink); border-radius: 6px; }
.su-chip--open { background: #ffe17a; } .su-chip--in_progress { color: #fff; background: #3b6fd8; } .su-chip--answered { color: #fff; background: #2f9a4c; } .su-chip--closed { background: #d6dcde; }
.su-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; text-align: center; font-size: 12px; opacity: .8; }
/* passos: Enviado → Em análise → Respondido → Resolvido */
.su-steps { display: flex; align-items: flex-start; margin: 10px 2px 8px; }
.su-step { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; text-align: center; }
.su-step i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; font-style: normal; font-family: var(--font-head); font-size: 12px; color: rgba(16,37,26,.5); background: #e8e2c8; border: 2px solid rgba(16,37,26,.35); border-radius: 50%; }
.su-step small { font-size: 10px; line-height: 1.15; opacity: .65; }
.su-step.is-done i { color: #fff; background: #2f9a4c; border-color: var(--px-ink); }
.su-step.is-now i { color: var(--px-ink); background: #ffe17a; border-color: var(--px-ink); box-shadow: 0 0 0 3px rgba(255,225,122,.45); animation: tgBadge 1.8s ease-in-out infinite; }
.su-step.is-now small { font-weight: 900; opacity: 1; }
.su-step-line { flex: 1; min-width: 6px; height: 3px; margin-top: 12px; font-style: normal; background: rgba(16,37,26,.2); border-radius: 2px; }
.su-step.is-done + .su-step-line { background: #2f9a4c; }
.su-steps--mini { margin: 3px 0 0; }
.su-steps--mini .su-step { width: auto; }
.su-steps--mini .su-step i { width: 15px; height: 15px; font-size: 8px; border-width: 1.5px; }
.su-steps--mini .su-step-line { margin-top: 6px; height: 2px; }
.su-steps--mini .su-step.is-now i { box-shadow: none; animation: none; }
/* novo pedido */
.su-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.su-cats .su-cat b { overflow-wrap: anywhere; line-height: 1.15; }
.su-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; cursor: pointer; font: inherit; color: var(--px-ink);
  background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: 0 3px 0 var(--px-ink); }
.su-cat b { font-family: var(--font-head); font-size: 11px; font-weight: 400; text-align: center; }
.su-cat.on { background: linear-gradient(180deg, #fff1b0, #f0b93a); transform: translateY(-2px); box-shadow: 0 0 0 3px #ffe17a, 0 4px 0 var(--px-ink); }
.su-form { margin-top: 12px; padding: 12px; background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.su-form.is-off { opacity: .45; pointer-events: none; }
.su-hint { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 7px 9px; font-size: 11.5px; line-height: 1.35; background: #fff6dc; border: 2px dashed #e0b24a; border-radius: 9px; }
.su-label { display: flex; justify-content: space-between; margin: 8px 2px 4px; font-family: var(--font-head); font-size: 12px; }
.su-label em { font-style: normal; font-size: 10px; opacity: .6; }
.su-input { width: 100%; padding: 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--px-ink); background: #fffdf3; border: 2px solid var(--px-ink); border-radius: 9px; outline: none; }
.su-input:focus { box-shadow: 0 0 0 3px rgba(240,185,58,.45); }
.su-area { min-height: 120px; resize: vertical; line-height: 1.4; }
.su-attach { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.su-attach small { font-size: 10.5px; opacity: .65; }
.su-attach .su-img-off { display: inline-flex; align-items: center; gap: 6px; opacity: .8; line-height: 1.35; }
.su-img-gone { display: block; margin-top: 6px; font-size: 11px; font-style: italic; opacity: .65; }
.su-attach-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; cursor: pointer; font-family: var(--font-head); font-size: 12px; background: #e8e2c8; border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 2px 0 var(--px-ink); }
.su-thumb { position: relative; flex-shrink: 0; }
.su-thumb img { display: block; width: 70px; height: 70px; object-fit: cover; border: 2px solid var(--px-ink); border-radius: 8px; }
.su-thumb button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; cursor: pointer; font-size: 11px; color: #fff; background: #e5484d; border: 2px solid var(--px-ink); border-radius: 50%; }
/* conversa */
.su-head { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--px-paper); border: 3px solid var(--px-ink); border-radius: 12px; box-shadow: var(--px-shadow); }
.su-head b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 400; }
.su-head small { font-size: 11px; opacity: .7; }
.su-status { margin: 2px 0 10px; padding: 8px 10px; font-size: 12px; line-height: 1.35; text-align: center; border: 2px solid var(--px-ink); border-radius: 9px; }
.su-status--open { background: #fff6dc; } .su-status--in_progress { background: #dfe9ff; } .su-status--answered { background: #dff3e3; } .su-status--closed { background: #e8ebe9; }
.su-msgs { display: flex; flex-direction: column; gap: 8px; }
.su-msg { max-width: 86%; padding: 8px 10px 6px; border: 2px solid var(--px-ink); border-radius: 12px; box-shadow: 0 2px 0 var(--px-ink); }
.su-msg--player { align-self: flex-end; background: #fff4cc; border-bottom-right-radius: 4px; }
.su-msg--team { align-self: flex-start; color: #fff; background: linear-gradient(180deg, #2c7a45, #1d5a33); border-bottom-left-radius: 4px; }
.su-msg-who { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 3px; font-family: var(--font-head); font-size: 11px; color: #ffe17a; }
.su-msg-text { font-size: 13px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.su-msg small { display: block; margin-top: 3px; font-size: 9.5px; text-align: right; opacity: .65; }
.su-msg-img { display: block; max-width: 100%; max-height: 260px; margin-top: 6px; border: 2px solid var(--px-ink); border-radius: 8px; background: #fff; }
.su-sys { align-self: center; padding: 3px 10px; font-size: 11px; background: rgba(16,37,26,.08); border-radius: 8px; }
.su-compose { display: flex; gap: 7px; align-items: flex-end; margin-top: 12px; }
.su-compose .su-input { min-height: 46px; max-height: 140px; resize: vertical; font-size: 13px; }
.su-send--sm { width: auto; margin: 0; padding: 11px 14px; font-size: 13px; }
.su-close { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; cursor: pointer;
  font-family: var(--font-head); font-size: 12px; color: #fff; background: linear-gradient(180deg, #3fb257, #23843a); border: 2px solid var(--px-ink); border-radius: 9px; box-shadow: 0 3px 0 var(--px-ink); }
.su-close .px-icon rect { fill: #fff; }
/* conta suspensa */
.bn-ov { position: fixed; inset: 0; z-index: 18000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; overflow: auto; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, rgba(120,30,25,.55), transparent 60%), linear-gradient(180deg, #2a0f0c, #120705); }
.bn-art img { filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }
.bn-title { font-family: var(--font-head); font-size: 26px; color: #ff8b7b; text-shadow: 0 3px 0 #4a0f0a; }
.bn-title--ok { color: #8be36b; text-shadow: 0 3px 0 #1d4a12; }
.bn-card { width: 100%; max-width: 320px; padding: 14px 16px; background: rgba(40,16,14,.85); border: 3px solid #7a2a22; border-radius: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.4); }
.bn-lbl { font-family: var(--font-head); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #d9a8a2; }
.bn-reason { margin-top: 3px; font-family: var(--font-head); font-size: 18px; color: #ffd979; }
.bn-sep { height: 2px; margin: 12px 0; background: #7a2a22; }
.bn-timer { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.bn-cell { min-width: 56px; padding: 6px 4px; background: #1c0b09; border: 2px solid #5a1f19; border-radius: 10px; }
.bn-num { font-family: var(--font-head); font-size: 24px; line-height: 1.1; }
.bn-unit { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #d9a8a2; }
.bn-until { margin-top: 8px; font-size: 12px; color: #c9b3b0; }
.bn-text { max-width: 320px; font-size: 13px; line-height: 1.5; color: #e2cdca; }
.bn-btn { margin-top: 4px; padding: 12px 26px; cursor: pointer; font-family: var(--font-head); font-size: 16px; color: var(--px-ink);
  background: linear-gradient(180deg, #ffe98f, #f0b93a); border: 3px solid #050f09; border-radius: 12px; box-shadow: 0 4px 0 #050f09; }
.bn-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #050f09; }

/* =====================
   CHAT (js/menu_chat.js) — camada por cima do jogo, como o Suporte
   ===================== */
.ch-layer { position: fixed; inset: 0; z-index: 19000; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto;
  background-color: #e3ecd0; background-image: radial-gradient(ellipse 140% 55% at 50% 0%, rgba(255,255,255,.6), transparent 62%), repeating-linear-gradient(90deg, rgba(47,143,69,.075) 0 46px, rgba(255,255,255,0) 46px 92px); }
.ch-layer[hidden] { display: none; }
body.ch-open .popup { z-index: 19600; }
.ch-top { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin: calc(8px + env(safe-area-inset-top)) 10px 0; padding: 7px 8px; color: #fff;
  background: linear-gradient(180deg, #164a2c, #0d2b17); border: 3px solid var(--px-ink); border-radius: 10px; box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 var(--px-ink); }
.ch-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ch-title b { font-family: var(--font-head); font-size: 16px; font-weight: 400; text-shadow: 0 2px 0 var(--px-ink); }
.ch-tabs { display: flex; gap: 5px; margin-left: auto; min-width: 0; }
.ch-tab { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 9px; cursor: pointer; font-family: var(--font-head); font-size: 12px; color: #d6ead9;
  background: rgba(0,0,0,.28); border: 2px solid rgba(240,185,58,.35); border-radius: 8px; }
.ch-tab.on { color: var(--px-ink); background: linear-gradient(180deg, #ffe98f, #f0b93a); border-color: var(--px-ink); box-shadow: 0 2px 0 var(--px-ink); }
.ch-rules { flex-shrink: 0; margin: 8px 12px 0; padding: 6px 9px; font-size: 11px; line-height: 1.35; text-align: center; color: #3a5a44;
  background: rgba(255,255,255,.55); border: 2px dashed rgba(16,37,26,.25); border-radius: 8px; }
.ch-list { flex: 1; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 7px; color: var(--px-ink); }
.ch-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; opacity: .8; }
.ch-unhide { align-self: center; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 11px; color: #3a5a44; background: rgba(255,255,255,.6); border: 1px dashed rgba(16,37,26,.3); border-radius: 999px; }
.ch-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 92%; }
.ch-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.ch-who { flex-shrink: 0; padding: 0; cursor: pointer; background: none; border: 0; }
.ch-crest { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 2px solid var(--px-ink); border-radius: 8px; box-shadow: 0 2px 0 var(--px-ink); }
.ch-bubble { min-width: 0; padding: 6px 9px 7px; background: #fffdf3; border: 2px solid var(--px-ink); border-radius: 4px 12px 12px 12px; box-shadow: 0 2px 0 var(--px-ink); }
.ch-msg.is-me .ch-bubble { background: linear-gradient(180deg, #d9f5c8, #b9e6a3); border-radius: 12px 4px 12px 12px; }
.ch-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 10.5px; opacity: .85; }
.ch-meta b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-family: var(--font-head); font-size: 12px; font-weight: 400; color: #164a2c; }
.ch-meta span { opacity: .7; }
.ch-more { margin-left: auto; padding: 0 4px; cursor: pointer; font: inherit; font-size: 14px; line-height: 1; color: var(--px-ink); background: none; border: 0; opacity: .6; }
.ch-text { font-size: 14px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.ch-newbelow { position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 6px 12px; cursor: pointer;
  font-family: var(--font-head); font-size: 12px; color: var(--px-ink); background: linear-gradient(180deg, #ffe98f, #f0b93a); border: 2px solid var(--px-ink); border-radius: 999px; box-shadow: 0 3px 0 var(--px-ink); }
.ch-newbelow[hidden] { display: none; }
.ch-comp { flex-shrink: 0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(13,43,23,.08); border-top: 2px solid rgba(16,37,26,.15); }
.ch-row { display: flex; gap: 6px; }
.ch-input { flex: 1; min-width: 0; padding: 11px 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--px-ink); background: #fffdf3; border: 2px solid var(--px-ink); border-radius: 10px; outline: none; }
.ch-input:focus { box-shadow: 0 0 0 3px rgba(240,185,58,.45); }
.ch-send { flex-shrink: 0; width: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink); border-radius: 10px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 3px 0 var(--px-ink); }
.ch-send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--px-ink); }
.ch-send:disabled { filter: grayscale(.6); opacity: .7; }
.ch-count { display: block; margin-top: 3px; text-align: right; font-size: 10px; opacity: .55; }
.ch-err { margin-bottom: 6px; padding: 6px 9px; font-size: 12px; font-weight: 700; color: #8a1c14; background: #ffe2dc; border: 2px solid #c8463a; border-radius: 8px; }
.ch-err[hidden] { display: none; }
.ch-locked { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.35; text-align: center;
  background: rgba(255,255,255,.65); border: 2px dashed rgba(16,37,26,.3); border-radius: 10px; }
.ch-sheet { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; background: rgba(5,15,9,.45); }
.ch-sheet[hidden] { display: none; }
.ch-sheet-box { width: 100%; display: flex; flex-direction: column; gap: 7px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--px-paper, #fbf6e3);
  border-top: 3px solid var(--px-ink); border-radius: 14px 14px 0 0; }
.ch-sheet-quote { padding: 7px 9px; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; background: rgba(16,37,26,.06); border-left: 3px solid var(--gold); border-radius: 6px; }
.ch-sheet-quote b { font-family: var(--font-head); font-weight: 400; color: #164a2c; }
.ch-sheet-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; cursor: pointer; font-family: var(--font-head); font-size: 14px; color: var(--px-ink);
  background: #fffdf3; border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--px-ink); }
.ch-sheet-btn--red { color: #fff; background: linear-gradient(180deg, #f07a6e, #c8463a); }
.ch-sheet-btn--ghost { background: transparent; box-shadow: none; border-style: dashed; }

/* treino do dia: botão no meio do relvado (sai depois de treinar) */
.tg-train-cta { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; cursor: pointer;
  font-family: var(--font-head); font-size: 15px; letter-spacing: .4px; color: var(--px-ink); white-space: nowrap;
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink); border-radius: 12px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--px-ink), 0 0 0 4px rgba(255,225,122,.35); animation: tgCtaPulse 2.2s ease-in-out infinite; }
.tg-train-cta i { font-style: normal; padding: 1px 6px; font-size: 11px; color: #fff; background: #2f8f45; border: 2px solid var(--px-ink); border-radius: 999px; }
.tg-train-cta:active { transform: translate(-50%, calc(-50% + 3px)); box-shadow: 0 1px 0 var(--px-ink); animation: none; }
@keyframes tgCtaPulse { 0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--px-ink), 0 0 0 3px rgba(255,225,122,.25); } 50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--px-ink), 0 0 0 8px rgba(255,225,122,.45); } }
body.q-low .tg-train-cta, body.eco .tg-train-cta { animation: none; }

.mk-rule { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; padding: 7px 9px; font-size: 10.5px; line-height: 1.35; color: #5a1a12; background: #fff1c9; border: 2px solid #10251a; border-radius: 8px; }
.mk-rule svg { flex: none; margin-top: 1px; color: #b3261e; }
.mk-rule--pop { margin: 8px 0 10px; }

.sp-how { margin: -2px 2px 6px; font-size: 11.5px; line-height: 1.4; opacity: .9; }
.sp-row .sp-go { transition: transform .15s; }
.sp-row.is-open .sp-go { transform: rotate(90deg); }
.sp-growth { display: none; margin-top: 6px; padding: 10px; text-align: left; background: rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.12); border-radius: 10px; }
.sp-row.is-open + .sp-growth { display: block; }
.sp-growth p { margin: 0 0 8px; font-size: 11.5px; line-height: 1.45; }
.sp-ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.sp-ages span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; text-align: center; border-radius: 8px; border: 2px solid var(--px-ink); }
.sp-ages b { font-family: var(--font-head); font-size: 12px; }
.sp-ages small { font-size: 9.5px; line-height: 1.2; opacity: .9; }
.sp-ages .up { background: rgba(79,209,107,.25); } .sp-ages .peak { background: rgba(240,185,58,.3); } .sp-ages .down { background: rgba(229,72,77,.25); } .sp-ages .out { background: rgba(255,255,255,.1); }
.sp-link { display: block; margin: 0 auto; padding: 5px 12px; font-family: var(--font-head); font-size: 12px; color: var(--px-ink); cursor: pointer; background: linear-gradient(180deg, var(--gold-bright, #ffe17a), var(--gold, #f0b93a)); border: 2px solid var(--px-ink); border-radius: 8px; }

#terms-gate { z-index: 30010; }
.tg-terms-check { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px; text-align: left; cursor: pointer; font-size: 12.5px; font-weight: 700; line-height: 1.4;
  background: #fff3c4; border: 2px solid var(--px-ink); border-radius: 10px; }
.tg-terms-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #2f8a3d; cursor: pointer; }
.tg-terms-check a { color: #1f6b33; font-weight: 900; text-decoration: underline; }
#terms-btn:disabled { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }

.header {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #17502e 0%, #0d2b17 100%);
}
.hd-crest:not(.has-crest-img) { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255,214,92,.45), 0 3px 0 2px #050f09; }
.hd-crest.has-crest-img { filter: drop-shadow(0 0 6px rgba(255,214,92,.5)) drop-shadow(0 3px 0 #050f09); }
.hd-profile:active .hd-crest { transform: scale(.94); }
.hd-power { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.25)); border-color: rgba(240,185,58,.7); }
.hd-power::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,240,180,.55), transparent); animation: hdShine 5s ease-in-out infinite; }
@keyframes hdShine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.hd-cur { background: linear-gradient(180deg, #0f2a1a, #050f09); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #050f09; overflow: visible; }
.hd-cur-val { text-shadow: 0 2px 0 #000; transition: color .2s; }
.hd-cur.is-up { animation: hdBump .45s ease-out; }
.hd-cur.is-up .hd-cur-val { color: #ffe17a; }
.hd-cur--gems.is-up .hd-cur-val { color: #9fdcff; }
.hd-cur.is-down { animation: hdDrop .35s ease-out; }
@keyframes hdBump { 0% { transform: scale(1); } 35% { transform: scale(1.14); box-shadow: 0 0 0 3px rgba(255,214,92,.45), 0 2px 0 #050f09; } 100% { transform: scale(1); } }
@keyframes hdDrop { 0% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 100% { transform: none; } }
.hd-float { position: absolute; right: 6px; top: 100%; z-index: 5; pointer-events: none; white-space: nowrap; font-style: normal;
  font-family: var(--font-head); font-size: 12px; text-shadow: 0 2px 0 #000; animation: hdFloat 1.25s ease-out forwards; }
.hd-float.is-up { color: #ffe17a; } .hd-cur--gems .hd-float.is-up { color: #9fdcff; } .hd-float.is-down { color: #ff8a80; }
@keyframes hdFloat { 0% { opacity: 0; transform: translateY(-6px) scale(.7); } 15% { opacity: 1; transform: translateY(2px) scale(1.1); } 100% { opacity: 0; transform: translateY(14px) scale(1); } }
.hd-btn { border-color: rgba(240,185,58,.55); background: linear-gradient(180deg, #0f2a1a, #050f09); }

.nav::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 35%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #17502e 0%, #0a2415 100%);
}
.nav-item > .nav-icon, .nav-item > span[data-nav] { position: relative; z-index: 1; }
.nav-item:not(.nav-item--play).active::before {
  display: block; content: ""; position: absolute; inset: 7px 5px 5px; z-index: 0; opacity: 1; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 25%, rgba(255,225,122,.3), rgba(255,225,122,.06) 70%);
  border: 2px solid rgba(255,225,122,.5); box-shadow: inset 0 0 12px rgba(255,214,92,.22), 0 0 10px rgba(255,214,92,.18);
}
.nav-item.is-pop:not(.nav-item--play) .nav-icon { animation: navPop .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes navPop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-7px) scale(1.18); } 100% { transform: translateY(-2px) scale(1); } }
.nav-item--play::before {
  display: block; content: ""; position: absolute; left: 50%; top: 7px; z-index: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; opacity: 1;
  border: 0; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,225,122,.42) 0 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 68%); mask: radial-gradient(circle, #000 30%, transparent 68%);
  animation: navRays 12s linear infinite;
}
.nav-play-disc { z-index: 2; }
.nav-item--play.active .nav-play-disc { animation: navGlow 2.4s ease-in-out infinite; }
@keyframes navRays { to { transform: rotate(360deg); } }
@keyframes navGlow { 50% { box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--px-ink), 0 0 0 6px rgba(240,185,58,.4), 0 0 22px rgba(255,214,92,.55); } }
html[data-eco="on"] .hd-power::after, html[data-eco="on"] .nav-item--play::before, html[data-eco="on"] .nav-item--play.active .nav-play-disc { animation: none; }
@media (prefers-reduced-motion: reduce) { .hd-power::after, .nav-item--play::before, .nav-item--play.active .nav-play-disc, .hd-cur.is-up, .hd-cur.is-down { animation: none; } }
.tg-terms-check a, .tg-terms-check span { font-size: inherit; font-family: inherit; }

/* ---------- FICHA DE CLUBE (popup) ---------- */
.cpx.popup-box {
  padding-top: 0 !important; overflow-x: hidden; color: #eef4ff; border-color: #000 !important;
  background: linear-gradient(180deg, #13284a 0%, #0b1830 100%) !important;
}
.cpx .pd-footer { background: #0b1830; border-top-color: #000; }
.cpx-head {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 22px 14px 14px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--club) 70%, #fff 0%) 0%, color-mix(in srgb, var(--club) 45%, #0b1830) 45%, #0b1830 100%);
  border-bottom: 3px solid #f0b93a;
}
.cpx-head::before {
  content: ""; position: absolute; left: -30%; right: -30%; top: -60%; height: 160%; opacity: .14; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 100%, #fff 0 5deg, transparent 5deg 15deg);
}
.cpx-x { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.cpx-crest { position: relative; display: inline-flex; filter: drop-shadow(0 4px 0 rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(255,225,122,.35)); }
.cpx-name { position: relative; max-width: 100%; font-family: var(--font-head); font-size: 22px; line-height: 1.1; color: #fff; text-shadow: 0 3px 0 #000; overflow-wrap: anywhere; }
.cpx-name .cp-bot { vertical-align: middle; }
.cpx-place {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; font-size: 11px;
  background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.2); border-radius: 999px;
}
.cpx-place b { padding: 1px 7px; font-family: var(--font-head); font-size: 12px; font-weight: 400; color: var(--px-ink); background: linear-gradient(180deg, #ffe98f, #f0b93a); border-radius: 999px; }
.cpx-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 6px; }
.cpx-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px;
  background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.16); border-radius: 10px;
}
.cpx-stat b { font-family: var(--font-head); font-size: 17px; font-weight: 400; color: #ffe17a; }
.cpx-stat small { font-size: 9px; letter-spacing: .5px; text-transform: uppercase; opacity: .7; }
.cpx-titles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.cpx-trophy {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; color: var(--px-ink);
  background: linear-gradient(180deg, #e9eef3, #b8c4cf); border: 2px solid #000; border-radius: 8px; box-shadow: 0 2px 0 #000;
}
.cpx-trophy--d1 { background: linear-gradient(180deg, #ffe98f, #f0b93a); box-shadow: 0 2px 0 #000, 0 0 10px rgba(255,210,90,.45); }
.cpx-trophy b { font-family: var(--font-head); font-size: 11px; font-weight: 400; }
.cpx-trophy small { font-size: 10px; opacity: .7; }
.cpx-sec { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; font-family: var(--font-head); font-size: 12px; color: #9fd6ff; text-transform: uppercase; letter-spacing: .5px; }
.cpx-formation { margin-left: auto; padding: 1px 8px; font-size: 11px; color: #ffe17a; background: rgba(0,0,0,.45); border: 2px solid rgba(255,225,122,.45); border-radius: 6px; }
.cpx-hist { display: flex; flex-direction: column; gap: 3px; }
.cpx-hist-row { display: grid; grid-template-columns: 40px 1fr 40px 80px; align-items: center; gap: 4px; padding: 5px 10px; font-size: 11px; background: rgba(255,255,255,.06); border-radius: 7px; }
.cpx-hist-row b { font-family: var(--font-head); font-weight: 400; text-align: center; }
.cpx-hist-row small { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10px; color: #ffe17a; }
.cpx-hist-row.is-champ { background: rgba(255,210,90,.18); box-shadow: inset 0 0 0 2px rgba(255,210,90,.5); }

.cpx-intel {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 4px; padding: 12px;
  background: linear-gradient(135deg, rgba(79,139,255,.22), rgba(255,255,255,.03)); border: 3px solid #4f8bff; border-radius: 14px; box-shadow: 0 4px 0 #000;
}
.cpx-intel-top { display: flex; align-items: center; gap: 10px; text-align: left; }
.cpx-intel-art { flex-shrink: 0; display: inline-flex; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); }
.cpx-intel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cpx-intel-body b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #fff; }
.cpx-intel-body small { font-size: 11px; line-height: 1.35; opacity: .8; }
.cpx-intel-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; cursor: pointer;
  font-family: var(--font-head); font-size: 14px; color: #fff; background: linear-gradient(180deg, #ff6a55, #d23a2a);
  border: 3px solid #000; border-radius: 10px; box-shadow: 0 4px 0 #000;
}
.cpx-intel-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.cpx-intel-note { text-align: center; font-size: 10px; opacity: .7; }
.cpx-key {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px; text-align: left;
  background: linear-gradient(135deg, rgba(255,225,122,.2), rgba(255,255,255,.03)); border: 3px solid #f0b93a; border-radius: 14px; box-shadow: 0 4px 0 #000;
}
.cpx-key-card {
  position: relative; flex-shrink: 0; width: 64px; height: 80px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #ffffff, #c7d2dc 60%, #7d8fa0); border: 3px solid #000; border-radius: 9px;
}
.cpx-key-card--gold { background: radial-gradient(circle at 50% 35%, #fff4c4, #f0b93a 60%, #b0700c); }
.cpx-key-card--bronze { background: radial-gradient(circle at 50% 35%, #ffe2c4, #c98a4a 60%, #7d4f22); }
.cpx-key-card > b { position: absolute; top: 3px; left: 5px; z-index: 2; font-family: var(--font-head); font-size: 13px; font-weight: 400; color: var(--px-ink); }
.cpx-key-card .kit-sprite { width: 56px; margin-bottom: -2px; }
.cpx-key-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cpx-key-body small { font-family: var(--font-head); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #ffe17a; }
.cpx-key-body > b { font-family: var(--font-head); font-size: 14px; font-weight: 400; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.cpx-key-line { display: flex; align-items: center; gap: 6px; }
.cpx-key-line i { font-style: normal; font-family: var(--font-head); font-size: 10px; padding: 0 5px; color: #fff; background: #000; border-radius: 3px; }
.cpx-key-form { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 8px; background: rgba(0,0,0,.45); border: 2px solid rgba(255,225,122,.45); border-radius: 9px; }
.cpx-key-form small { font-size: 8px; text-transform: uppercase; opacity: .7; }
.cpx-key-form b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #ffe17a; }
.cpx-rep { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: 10px; }
.cpx-rep-lvl { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-family: var(--font-head); font-size: 10px; color: #fff; background: #3f8f3a; border: 2px solid #000; border-radius: 6px; }
.cpx-rep small { flex: 1; min-width: 120px; opacity: .7; }
.cpx-rep-up { padding: 5px 10px; cursor: pointer; font-family: var(--font-head); font-size: 11px; color: #fff; background: #4f8bff; border: 2px solid #000; border-radius: 7px; box-shadow: 0 2px 0 #000; }

.cpx-squad { display: flex; flex-direction: column; gap: 10px; }
.cpx-grp { display: flex; flex-direction: column; gap: 4px; }
.cpx-grp-h { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cpx-grp-h i { font-style: normal; padding: 0 5px; color: #0b1830; background: rgba(255,255,255,.55); border-radius: 3px; }
.cpx-grp-h::after { content: ""; flex: 1; height: 2px; background: rgba(255,255,255,.12); }
.cpx-pl { text-align: left; padding: 6px 8px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.1); border-radius: 9px; }
.cpx-pl.is-starter { border-color: rgba(126,240,160,.55); background: rgba(126,240,160,.08); }
.cpx-pl.is-listed { opacity: .5; }
.cpx-pl-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cpx-pl-name { flex: 1; min-width: 0; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpx-pl-name small { font-size: 10px; opacity: .55; }
.cpx-pl-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; padding-left: 52px; }
.cpx-pl .cp-ovr { flex: none; }
.cpx-pl .cp-fit--hi { color: #7ef0a0; } .cpx-pl .cp-fit--mid { color: #ffd166; } .cpx-pl .cp-fit--lo { color: #ff8a7a; }
.cpx-attrs { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; padding-left: 52px; font-size: 9px; color: rgba(255,255,255,.6); }
.cpx-attrs span { display: inline-flex; gap: 3px; }
.cpx-attrs b { font-family: var(--font-head); font-weight: 400; color: #fff; }
/* ---------- LARGURA DOS POPUPS ----------
   antes: 20 px de margem + 90% do resto → ~300 px num telemóvel de 375 px
   (parecia apertado). Agora ocupam o ecrã todo menos 12 px de cada lado. */
.popup { padding: 12px; }
.popup-box { width: min(440px, 100%); }
.sc-box { width: min(440px, 100%); }
.popup-box--err, .popup-box--info { width: min(380px, 100%); }
.fs-box { width: min(360px, 100%); }
/* login com wallet (js/wallet-login.js) */
.wl-list { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.wl-wallet img { width: 24px; height: 24px; border-radius: 6px; image-rendering: auto; }
.wl-none { font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.wl-link { text-decoration: none; }

/* ---------- Plantel: alternar cartões / lista + tabela ordenável ---------- */
.sq2-view { flex-shrink: 0; display: inline-flex; overflow: hidden; border: 2px solid var(--px-ink); border-radius: 8px; }
.sq2-view button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; cursor: pointer; font-family: var(--font-head); font-size: 11px; color: var(--px-ink); background: var(--px-paper); border: 0; }
.sq2-view button + button { border-left: 2px solid var(--px-ink); }
.sq2-view button.on { color: #fff; background: #2f8f45; }
.sq3-wrap { overflow-x: auto; background: var(--px-paper); border: 2px solid var(--px-ink); border-radius: 10px; box-shadow: var(--px-shadow-sm); }
.sq3 { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 12px; color: var(--px-ink); }
.sq3 th { padding: 8px 6px; cursor: pointer; white-space: nowrap; text-align: center; font-family: var(--font-head); font-size: 10px; text-transform: uppercase; color: #52654f; background: #f1edd8; border-bottom: 2px solid var(--px-ink); user-select: none; }
.sq3 th.is-sort { color: #10251a; }
.sq3 th i { margin-left: 3px; font-style: normal; font-size: 8px; }
.sq3 td { padding: 6px; text-align: center; white-space: nowrap; border-bottom: 1px solid #dfd9bf; }
.sq3 .l { text-align: left; }
.sq3 tbody tr { cursor: pointer; }
.sq3 tbody tr:hover td { background: #fff3c4; }
.sq3 tbody tr:last-child td { border-bottom: 0; }
.sq3 tr.is-listed td { opacity: .6; }
.sq3-pos { display: inline-block; min-width: 34px; padding: 2px 4px; font-size: 10px; }
.sq3-name { display: inline-flex; align-items: center; gap: 6px; }
.sq3-name b { font-weight: 700; }
.sq3-xi, .sq3-cap { padding: 1px 4px; font-style: normal; font-family: var(--font-head); font-size: 9px; color: #fff; background: #2f8f45; border-radius: 3px; }
.sq3-cap { color: #10251a; background: #f0b93a; }
.sq3-ovr { display: inline-grid; place-items: center; width: 32px; height: 22px; font-family: var(--font-head); color: #fff; background: #10251a; border-radius: 5px; }
.sq3-pot { color: #3b6fd8; font-weight: 700; }
.sq3-fit { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; }
.sq3-fit .sq2-fit-bar { flex: 1; }
.sq3-fit b { min-width: 34px; text-align: right; font-size: 11px; }
.sq3-form { letter-spacing: 1px; color: #f0b93a; }
.sq3-form s { text-decoration: none; color: #cfc8a8; }

/* ---------- Plantel à moda do FM: grupos por posição, seleção, atributos ---------- */
.sq2-summary:has(> span:nth-child(6)) { grid-template-columns: repeat(3, 1fr); }
.sq-grp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 6px; padding: 0 2px; }
.sq-grp:first-child { margin-top: 2px; }
.sq-grp--row { margin: 0; }
.sq-grp-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--px-ink); }
.sq-grp-name .sq2-pos { font-size: 10px; padding: 1px 6px; }
.sq-grp-meta { font-size: 11px; color: #52654f; }
.sq-grp-meta b { color: var(--px-ink); }
.sq-grp-meta b.is-full { color: #c4382f; }
.sq3 tr.sq3-grp td { padding: 10px 10px 6px; text-align: left; background: #f1edd8; border-bottom: 2px solid var(--px-ink); cursor: default; }
.sq3 tbody tr.sq3-grp:hover td { background: #f1edd8; }
.sq3 .r { text-align: right; }
.sq3-sel { display: inline-block; min-width: 38px; padding: 2px 5px; font-style: normal; font-family: var(--font-head); font-size: 10px; text-align: center; color: #fff; background: #8a96a0; border-radius: 4px; }
.sq3-sel--xi { background: #2f8f45; }
.sq3-sel--sub { color: #10251a; background: #dfe6e0; }
.sq3-sel--inj { background: #d8433b; }
.sq3-sel--sus { background: #b07b00; }
.sq3-sel--sale { color: #10251a; background: #f0b93a; }
.sq3 tr.sq3-row--inj td, .sq3 tr.sq3-row--sus td, .sq3 tr.sq3-row--sale td { opacity: .72; }
.sq3-acad { display: inline-grid; place-items: center; width: 16px; height: 16px; font-style: normal; background: #fff3c4; border: 1px solid #c9a227; border-radius: 4px; }
.sq3-rat { display: inline-block; min-width: 30px; padding: 1px 4px; border-radius: 4px; font-family: var(--font-head); font-size: 11px; color: #fff; background: #8a96a0; }
.sq3-rat--hi { background: #2f8f45; } .sq3-rat--ok { background: #3b6fd8; } .sq3-rat--lo { background: #c4382f; }
.sq3-card { display: inline-block; width: 8px; height: 11px; margin-right: 2px; vertical-align: -1px; background: #f2c94c; border-radius: 1px; }
.sq3-card--r { background: #e5484d; }
.sq3-val { white-space: nowrap; font-weight: 700; }
.sq3-val .cur-ico { margin-right: 2px; }
.sq3-at-h { min-width: 40px; }
.sq3-at { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 4px; border-radius: 4px; font-family: var(--font-head); font-size: 12px; color: #fff; }
.sq3-at--1 { background: #c4382f; } .sq3-at--2 { background: #d9821c; } .sq3-at--3 { background: #a3a832; }
.sq3-at--4 { background: #2f8f45; } .sq3-at--5 { background: #2d6fd6; }
.sq3-at.is-key { box-shadow: 0 0 0 2px #10251a, 0 0 0 3px #f0b93a; }
.sq2-view--cols button { min-width: 64px; justify-content: center; }
@media (max-width: 999px) {
  .sq2-bar { flex-wrap: wrap; }
  .sq2-chips { flex: 1 1 100%; }
  .sq2-bar .sq2-scout { margin-left: auto; }
}
