/* RUNAS v28 - navegação no teto real da página, sem acompanhar a rolagem. */

html body .logout-button.logout-button.logout-button{
  position:absolute !important;
  top:1px !important;
  right:1px !important;
  left:auto !important;
  bottom:auto !important;
  margin:0 !important;
  transform-origin:right top !important;
  z-index:1200 !important;
  white-space:nowrap !important;
}

/* O botão é removido visualmente apenas enquanto um diálogo realmente visível estiver aberto. */
html body.runas-popup-active .logout-button.logout-button.logout-button,
body.modal-open .logout-button,
body.admin-modal-open .logout-button,
body.payment-modal-open .logout-button,
body.monthly-modal-open .logout-button,
body.team-origin-open .logout-button,
body.absence-modal-open .logout-button{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Abre uma área limpa no lado direito do rodoteto, sem runas atrás do botão. */
html body .athlete-runes-top{
  -webkit-mask-image:linear-gradient(to right,
    #000 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    #000 calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
  mask-image:linear-gradient(to right,
    #000 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    #000 calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
}

/* A linha do teto também termina antes do botão. */
html body .athlete-shell::before{
  background:linear-gradient(to right,
    rgba(243,179,0,.25) 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    rgba(243,179,0,.25) calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
}

@media (max-width:820px){
  html body .logout-button.logout-button.logout-button{
    top:1px !important;
    right:1px !important;
  }
  html body .athlete-runes-top{
    -webkit-mask-image:linear-gradient(to right,
      #000 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      #000 calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
    mask-image:linear-gradient(to right,
      #000 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      #000 calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
  }
  html body .athlete-shell::before{
    background:linear-gradient(to right,
      rgba(243,179,0,.25) 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      rgba(243,179,0,.25) calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
  }
}

/* Ajuste global definitivo: ocultar a marca lateral Runas Vôlei em qualquer largura. */
html body .tribe-branding.tribe-branding,
html body header.tribe-branding,
html body .admin-edit-branding,
html body .finance-branding,
html body .monthly-branding,
html body .team-generator-branding,
html body .manage-users-branding,
html body .member-lists-branding,
html body .live-match-branding,
html body .ranking-branding,
html body .voting-branding{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Fechamentos dos pop-ups: 35% maiores, inclusive no mobile. */
html body .admin-modal-close.admin-modal-close,
html body .create-list-close.create-list-close,
html body .monthly-modal-close.monthly-modal-close,
html body .finance-modal-close.finance-modal-close,
html body .payment-confirm-close.payment-confirm-close,
html body .team-origin-close.team-origin-close,
html body .absence-close.absence-close,
html body .match-confirm-close.match-confirm-close,
html body .vote-modal-close.vote-modal-close,
html body .live-match-close.live-match-close{
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:2.7rem !important;
  line-height:1 !important;
}

@media (max-width:820px){
  html body .tribe-branding.tribe-branding,
  html body header.tribe-branding{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  html body .admin-modal-close.admin-modal-close,
  html body .create-list-close.create-list-close,
  html body .monthly-modal-close.monthly-modal-close,
  html body .finance-modal-close.finance-modal-close,
  html body .payment-confirm-close.payment-confirm-close,
  html body .team-origin-close.team-origin-close,
  html body .absence-close.absence-close,
  html body .match-confirm-close.match-confirm-close,
  html body .vote-modal-close.vote-modal-close,
  html body .live-match-close.live-match-close{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    padding:0 !important;
    font-size:2.7rem !important;
    line-height:1 !important;
  }
}

/* ========================================================================
   LISTAS — altura uniforme dos botões, sem seleção persistente e sem legenda
   ======================================================================== */

/* Membro: os quatro botões principais usam exatamente a mesma altura.
   A altura de 44px representa aproximadamente 25% de redução visual no layout
   mobile aprovado, sem depender da cor ou do data-action atual. */
html body.member-lists-page .member-actions-panel .member-list-action,
html body.member-lists-page .runas-member-action-group > .member-list-action,
html body.member-lists-page .runas-guest-action-group > .member-list-action,
html body.member-lists-page #primary-list-action-button,
html body.member-lists-page #leave-list-button,
html body.member-lists-page #guest-list-action-button,
html body.member-lists-page #remove-guest-button{
  height:44px !important;
  min-height:44px !important;
  max-height:44px !important;
  padding-top:4px !important;
  padding-bottom:4px !important;
  box-sizing:border-box !important;
}

html body.member-lists-page .member-list-action > img,
html body.member-lists-page .member-list-action img.runas-action-button-icon{
  width:25px !important;
  height:25px !important;
  min-width:25px !important;
  max-width:25px !important;
  max-height:25px !important;
}

html body.member-lists-page .member-action-exit,
html body.member-lists-page .member-guest-action-icon{
  font-size:1.35rem !important;
  line-height:1 !important;
  transform:none !important;
}

/* ADM: mantém a redução vertical solicitada nos botões laterais. */
html body.admin-edit-list-page .admin-edit-action{
  min-height:40px !important;
  padding-top:6px !important;
  padding-bottom:6px !important;
}
html body.admin-edit-list-page .admin-action-icon{
  width:22px !important;
  height:22px !important;
}
html body.admin-edit-list-page .admin-action-icon svg{
  width:19px !important;
  height:19px !important;
}

/* Nenhum botão conserva contorno amarelo após o clique. */
html body.member-lists-page .member-list-action.is-active,
html body.member-lists-page .member-list-action:focus,
html body.member-lists-page .member-list-action:focus-visible,
html body.member-lists-page .member-list-action:active,
html body.admin-edit-list-page .admin-edit-action:focus,
html body.admin-edit-list-page .admin-edit-action:focus-visible,
html body.admin-edit-list-page .admin-edit-action:active{
  outline:none !important;
  outline-offset:0 !important;
}
html body.member-lists-page .member-list-action.is-active{
  filter:none !important;
}

/* A legenda inferior dos símbolos permanece totalmente removida. */
html body.member-lists-page .list-status-legend,
html body.admin-edit-list-page .admin-state-legend{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}


/* ==========================================================================
   RUNAS — padrão universal do teto e rodapé de todas as subpáginas
   ========================================================================== */

html body.subpage-body .athlete-shell,
html body.athlete-page .athlete-shell{
  position:relative !important;
}

html body.subpage-body .athlete-shell > .athlete-top-logo,
html body.athlete-page .athlete-shell > .athlete-top-logo{
  position:absolute !important;
  z-index:30 !important;
  top:2px !important;
  left:50% !important;
  width:58px !important;
  height:auto !important;
  margin:0 !important;
  transform:translateX(-50%) !important;
  object-fit:contain !important;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.48)) !important;
}

html body.subpage-body .athlete-shell > .athlete-runes,
html body.athlete-page .athlete-shell > .athlete-runes{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  gap:clamp(6px,.72vw,10px) !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:#d69a06 !important;
  font-size:clamp(.68rem,.78vw,.84rem) !important;
  line-height:1 !important;
  letter-spacing:.12em !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  opacity:.92 !important;
  pointer-events:none !important;
  z-index:24 !important;
}

html body.subpage-body .athlete-shell > .athlete-runes-top,
html body.athlete-page .athlete-shell > .athlete-runes-top{
  top:7px !important;
  -webkit-mask-image:linear-gradient(to right,
    #000 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    #000 calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
  mask-image:linear-gradient(to right,
    #000 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    #000 calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
}

html body.subpage-body .athlete-shell > .athlete-runes-bottom,
html body.athlete-page .athlete-shell > .athlete-runes-bottom{
  bottom:7px !important;
  -webkit-mask-image:linear-gradient(to right,
    transparent 0 18px,
    #000 30px calc(50% - 22px),
    transparent calc(50% - 12px) calc(50% + 12px),
    #000 calc(50% + 22px) calc(100% - 30px),
    transparent calc(100% - 18px) 100%) !important;
  mask-image:linear-gradient(to right,
    transparent 0 18px,
    #000 30px calc(50% - 22px),
    transparent calc(50% - 12px) calc(50% + 12px),
    #000 calc(50% + 22px) calc(100% - 30px),
    transparent calc(100% - 18px) 100%) !important;
}

html body.subpage-body .athlete-shell::before,
html body.athlete-page .athlete-shell::before{
  content:"" !important;
  position:absolute !important;
  z-index:20 !important;
  top:34px !important;
  left:0 !important;
  right:0 !important;
  height:1px !important;
  background:linear-gradient(to right,
    rgba(243,179,0,.25) 0 calc(50% - 54px),
    transparent calc(50% - 44px) calc(50% + 44px),
    rgba(243,179,0,.25) calc(50% + 54px) calc(100% - 138px),
    transparent calc(100% - 124px) 100%) !important;
  pointer-events:none !important;
}

html body.subpage-body .athlete-shell::after,
html body.athlete-page .athlete-shell::after{
  content:"" !important;
  position:absolute !important;
  z-index:20 !important;
  left:26px !important;
  right:26px !important;
  bottom:34px !important;
  height:1px !important;
  background:linear-gradient(90deg,
    transparent,
    rgba(243,179,0,.22) 16%,
    rgba(243,179,0,.22) 84%,
    transparent) !important;
  pointer-events:none !important;
}

html body.subpage-body .athlete-panel > .athlete-card-frame,
html body.athlete-page .athlete-panel > .athlete-card-frame{
  display:block !important;
  visibility:visible !important;
  position:absolute !important;
  inset:66px 10px 56px !important;
  border:1px solid rgba(124,96,33,.38) !important;
  opacity:.55 !important;
  pointer-events:none !important;
  clip-path:polygon(
    3% 0,
    46.5% 0,
    49.4% 3.4%,
    50.6% 3.4%,
    53.5% 0,
    97% 0,
    100% 3.2%,
    100% 96.8%,
    97% 100%,
    3% 100%,
    0 96.8%,
    0 3.2%
  ) !important;
}

@media(max-width:820px){
  html body.subpage-body .athlete-shell > .athlete-top-logo,
  html body.athlete-page .athlete-shell > .athlete-top-logo{
    top:2px !important;
    width:52px !important;
  }

  html body.subpage-body .athlete-shell > .athlete-runes,
  html body.athlete-page .athlete-shell > .athlete-runes{
    gap:6px !important;
    font-size:.66rem !important;
  }

  html body.subpage-body .athlete-shell > .athlete-runes-top,
  html body.athlete-page .athlete-shell > .athlete-runes-top{
    -webkit-mask-image:linear-gradient(to right,
      #000 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      #000 calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
    mask-image:linear-gradient(to right,
      #000 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      #000 calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
  }

  html body.subpage-body .athlete-shell::before,
  html body.athlete-page .athlete-shell::before{
    background:linear-gradient(to right,
      rgba(243,179,0,.25) 0 calc(50% - 40px),
      transparent calc(50% - 32px) calc(50% + 32px),
      rgba(243,179,0,.25) calc(50% + 40px) calc(100% - 112px),
      transparent calc(100% - 100px) 100%) !important;
  }

  html body.subpage-body .athlete-panel > .athlete-card-frame,
  html body.athlete-page .athlete-panel > .athlete-card-frame{
    inset:56px 4px 52px !important;
  }
}


/* ==========================================================================
   RUNAS — fundo estrutural sem retângulo escuro
   A textura de couro pertence ao fundo da página. Os shells/painéis
   estruturais ficam transparentes para não formar uma placa sobre o couro.
   ========================================================================== */

/* Um único couro contínuo por trás de todas as subpáginas. */
html body.subpage-body,
html body.athlete-page{
  background-color:#090909 !important;
  background-image:url("texturas do site/textura-base-janelas-couro-preto.png") !important;
  background-size:430px 430px !important;
  background-repeat:repeat !important;
  background-position:center top !important;
  background-attachment:scroll !important;
}

/* Remove somente fundos decorativos estruturais que criavam o retângulo. */
html body.subpage-body .athlete-shell,
html body.athlete-page .athlete-shell,
html body.subpage-body .subpage-shell,
html body.athlete-page .subpage-shell,
html body.subpage-body .subpage-main,
html body.athlete-page .subpage-main,
html body.subpage-body .athlete-panel,
html body.athlete-page .athlete-panel{
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}

/*
 * Também neutraliza overlays estruturais comuns sem tocar nos ::before/::after
 * da athlete-shell, pois eles são usados pelas linhas horizontais oficiais.
 */
html body.subpage-body .athlete-panel,
html body.athlete-page .athlete-panel{
  isolation:auto !important;
}

/* Páginas que usam wrappers próprios continuam vendo o mesmo couro do body. */
html body.subpage-body .finance-shell,
html body.subpage-body .monthly-shell,
html body.subpage-body .games-shell,
html body.subpage-body .ranking-shell,
html body.subpage-body .manage-users-shell,
html body.subpage-body .manage-matches-shell,
html body.subpage-body .team-generator-shell,
html body.subpage-body .voting-shell,
html body.subpage-body .live-match-shell{
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}

