/* ==========================================================================
   MITIC FUT — pedidos de 15/10/2026
   ========================================================================== */

/* Donos: nome arco-íris animado */
.owner-name { background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #7be495, #5fc3e4, #a78bfa, #ff5f6d); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 900; animation: rainbow 4s linear infinite; }
.owner-badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid #a78bfa; color: #c4b5fd; vertical-align: middle; }
.owner-btn { border-color: #a78bfa !important; color: #c4b5fd !important; }
@keyframes rainbow { to { background-position: 300% center; } }
.admin-grid { display: grid; gap: 10px; margin-top: 12px; }
.admin-op { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); }

/* Tags novas */
.coach-tag.gigolo { color: #e9b8d0; border-color: #8a4a6a; }
.coach-tag.macom { color: #d6c38a; border-color: #8a7a4a; }
.coach-tag.bolso { color: #9fd3a9; border-color: #4f7a58; }
.coach-tag.napoleao { color: #c9b7e8; border-color: #6d5a94; font-style: italic; }
.coach-tag.lagarto { color: #8fc18a; border-color: #4c7a48; }
.coach-tag.problema { color: #e3a39b; border-color: #8a4a44; }
.coach-tag.luffy { color: #f2c94c; border-color: #b23a2e; background: #1c0b0a; }

/* Tática: banco e não relacionados como bolinhas, iguais às do campo */
.btokens { display: flex; flex-wrap: wrap; gap: 10px 6px; min-height: 64px; padding: 8px; border: 1px dashed var(--border-medium); border-radius: var(--radius-md); }
.btoken { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: grab; }
.btoken .shirt { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; background: #f2f2f2; color: #000; }
.btoken.unav .shirt { background: #3a3a3a; color: #bbb; text-decoration: line-through; }
.btoken .nm { font-size: 0.66rem; font-weight: 700; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btoken .sl { font-size: 0.6rem; color: var(--text-muted); }
.pitch .token { cursor: pointer; }

/* Competições: minhas em botões */
.comp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.comp-chips .chip { white-space: nowrap; }

/* Ascensão */
.awk-box { margin: 10px 0; padding: 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); display: grid; gap: 8px; }
.awk-box.awk-1 { border-color: rgba(191, 161, 96, 0.6); }
.awk-box.awk-2 { border-color: var(--old-gold, #BFA160); background: rgba(191, 161, 96, 0.08); }
.awk-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 64px; gap: 10px; align-items: center; font-size: 0.84rem; }
.awk-track { height: 8px; background: #1a1a1a; }
.awk-track i { display: block; height: 100%; background: var(--old-gold, #BFA160); }

/* Patrocínios */
.sponsor-card { margin-bottom: 14px; border-color: rgba(191, 161, 96, 0.45); }
.sponsor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.sponsor { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: #0b0b0b; }
.sp-brand { font-family: var(--font-sports); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; }

/* Lobby: + Player */
.slot-add { display: grid; place-items: center; gap: 4px; min-height: 96px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font-family: var(--font-sports); font-weight: 900; font-size: 1.4rem; cursor: pointer; }
.slot-add .dim { font-family: var(--font-ui); font-weight: 400; font-size: 0.76rem; }
.slot-add:hover { border-color: var(--text-primary); }

/* Animações novas: camisa da lenda, despertar e patrocínio */
.fx-legend .lj-crown { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 700ms 200ms ease-out forwards; }
.fx-legend .lj-shirt { animation: clip-in 520ms var(--ease-in-firm) both; }
.fx-legend .lj-num { animation: punch 160ms 620ms ease-out both; }
.fx-legend .lj-shine { animation: shine 1.4s 700ms ease-in-out 2; }
@keyframes shine { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(320px) skewX(-18deg); } }
.fx-awaken .fx-head { color: var(--paper); letter-spacing: 0.02em; }
.fx-awaken.awk-legend .fx-head { color: var(--gold-trophy); }
.fx-awaken .aw-ring { transform-origin: 100px 150px; animation: ring 1.2s ease-out infinite; }
.fx-awaken .aw-r2 { animation-delay: 0.25s; } .fx-awaken .aw-r3 { animation-delay: 0.5s; }
.fx-awaken .aw-beam { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 600ms 150ms ease-out forwards; }
@keyframes ring { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.3); opacity: 0; } }
.fx-sponsor .sb-led { animation: led 0.6s linear infinite; }
@keyframes led { to { stroke-dashoffset: 12; } }
.fx-sponsor .fx-art svg { animation: clip-in 480ms var(--ease-in-firm) both; }
.fx-still .lj-crown, .fx-still .aw-beam { stroke-dashoffset: 0 !important; }

/* Correção: no celular o nome NÃO fica preso ao rolar a tabela para o lado (vinha "junto" dos outros dados) */
@media (max-width: 720px) {
  .sticky-head th:nth-child(2), .sticky-head td:nth-child(2) { position: static !important; box-shadow: none !important; }
  .awk-row { grid-template-columns: minmax(0, 1fr) 80px 56px; }
}

/* Competições: minhas em cima, seletor das demais embaixo (sem sobrepor) */
.comp-head { display: grid; gap: 10px; }
.comp-mine { min-width: 0; }
.comp-other { max-width: 420px; }
.comp-chips { flex-wrap: wrap; overflow: visible; }

/* Lenda identificada no mercado */
.legend-tag { white-space: nowrap; font-weight: 800; }

/* Notificações sempre visíveis: fixas no topo da tela, acima de tudo */
.toasts { position: fixed !important; top: 72px; bottom: auto; right: 16px; left: auto; z-index: 1000; max-width: min(420px, calc(100vw - 32px)); }
.toast { animation: toast-in 260ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) { .toasts { top: 64px; right: 12px; left: 12px; max-width: none; align-items: stretch; } }

/* Marca */
.mf-brand { display: inline-flex; align-items: center; gap: 10px; }
.mf-word { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-sports); font-style: italic; line-height: 1; letter-spacing: 0.02em; transform: skewX(-6deg); }
.mf-word b { font-weight: 900; color: #EDEBE6; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.mf-word i { font-style: italic; font-weight: 900; color: transparent; -webkit-text-stroke: 1.4px #D9C489; background: linear-gradient(180deg, #D9C489, #BFA160 60%, #8c7340); -webkit-background-clip: text; background-clip: text; }
.home-brand { display: flex; align-items: center; gap: 16px; margin: 4px 0 2px; }
.mf-word.big { font-size: clamp(2.6rem, 8vw, 4.4rem); }
.logo-crest { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); flex-shrink: 0; }

/* Lobby: amarelo suave para "Estou pronto", verde suave para "Iniciar carreira" */
.btn-ready { background: #C9B26A; border-color: #C9B26A; color: #1a1607; font-weight: 800; }
.btn-ready:hover:not(:disabled) { background: #D6C07A; border-color: #D6C07A; }
.btn-ready.is-ready { background: transparent; color: #D6C07A; border-color: #8f7f4c; }
.btn-start { background: #7FA087; border-color: #7FA087; color: #0b140e; font-weight: 800; }
.btn-start:hover:not(:disabled) { background: #8FB096; border-color: #8FB096; }
.btn-start:disabled { background: #26332a; border-color: #3a4a3e; color: #8a9a8e; }

/* Ilustrações realistas dos estados vazios */
.empty-art-ill:has(.art-real) { width: 128px; opacity: 1; }
.art-real { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }

/* Escudos sem placa nem círculo: só o escudo, com um contorno de luz sutil para os escuros não sumirem no preto */
.crest-plate { background: none !important; border-radius: 0 !important; padding: 0 !important; }
.crest-plate img { width: 86% !important; height: 86% !important; margin: auto; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)); }
.club-hero .crest, .club-hero .crest-plate { width: 52px !important; height: 52px !important; }
.club-choice .crest, .club-choice .crest-plate { width: 44px !important; height: 44px !important; }
@media (max-width: 720px) { .club-hero .crest, .club-hero .crest-plate { width: 40px !important; height: 40px !important; } }

/* Artes enviadas pelo usuário nos estados vazios */
.empty-art-ill:has(.art-img) { width: 140px; opacity: 1; }
.art-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }

/* Legibilidade sobre o vídeo: véu mais escuro do lado do texto + sombra suave nas letras (sem contorno duro) */
#pitch-veil { background: linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0.3) 100%), linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.6)) !important; }
.hero-title, .hero-kicker, .hero-text, .home-brand, .screen-title, .kicker { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.6); }
.hero-title em { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 28px rgba(0, 0, 0, 0.7); }
.hero-text { color: #EDEBE6; }
@media (max-width: 720px) { #pitch-veil { background: rgba(5, 5, 5, 0.62) !important; } }
.hero-kicker { color: #EDEBE6 !important; opacity: 1 !important; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8); }
.hero-kicker::first-letter { color: inherit; }
.hero-title { line-height: 1.02 !important; padding-top: 0.08em; }
.mf-word i { background: none !important; -webkit-text-fill-color: transparent; color: transparent; -webkit-text-stroke: max(1px, 0.035em) #D9C489; }
