/* ============================================================================
   MONSTERIDLE — BARRAS DE ROLAGEM E CAIXINHAS NO TEMA  (css/rolagem.css, out/2026)
   ----------------------------------------------------------------------------
   Antes eram três jeitos convivendo: janelas sem estilo (a barra do Windows,
   com as setinhas), 13 lugares com a barra fina em var(--linha) sobre
   transparente (azul-escuro sobre azul-escuro: quase invisível) e 38 regras
   ::-webkit-scrollbar antigas que o Chrome atual ignora quando a barra fina
   está ligada.
   Agora é um padrão só: fina, sem setinhas, a parte que arrasta em azul
   visível sobre um trilho escuro. O padrão vale para o jogo todo; quem
   esconde a barra de propósito (scrollbar-width:none) continua escondendo,
   porque a largura aqui vai no seletor universal (peso zero) e a cor é que
   leva !important.
   Entra por último.
   ============================================================================ */
*{scrollbar-width:thin}
*{scrollbar-color:#3d8fe0 rgba(2,10,22,.5) !important}

/* navegadores sem as propriedades padrão (Safari antigo): o mesmo desenho */
@supports not (scrollbar-color: auto){
  ::-webkit-scrollbar{width:9px;height:9px}
  ::-webkit-scrollbar-track{background:rgba(2,10,22,.5);border-radius:99px}
  ::-webkit-scrollbar-thumb{background:#3d8fe0 !important;border-radius:99px;border:2px solid rgba(6,18,34,.9)}
  ::-webkit-scrollbar-thumb:hover{background:#6cc4ff !important}
  ::-webkit-scrollbar-button{display:none;width:0;height:0}
  ::-webkit-scrollbar-corner{background:transparent}
}

/* ============================================================================
   CAIXINHA DE MARCAR (checkbox) E OPÇÃO (radio)
   Saíam com o quadradinho do sistema (ex.: "só shiny" no Mercado). Agora:
   borda azul, fundo escuro; marcada = ciano com o ✓ escuro e um brilho.
   Vai dentro de :where() (peso zero): quem já tem desenho próprio (login,
   os interruptores do Helper, que são uma caixinha invisível por baixo)
   continua com o seu.
   ============================================================================ */
:where(input[type=checkbox], input[type=radio]){
  -webkit-appearance:none;appearance:none;flex:none;width:17px;height:17px;margin:0;
  display:inline-grid;place-content:center;vertical-align:-3px;cursor:pointer;
  background:rgba(2,10,22,.75);border:1.5px solid #3d8fe0;border-radius:5px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.6);transition:background .12s,border-color .12s,box-shadow .12s}
:where(input[type=radio]){border-radius:50%}
:where(input[type=checkbox])::before{content:"";width:10px;height:10px;transform:scale(0);transition:transform .12s;
  background:#05263a;clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%)}
:where(input[type=radio])::before{content:"";width:7px;height:7px;border-radius:50%;transform:scale(0);transition:transform .12s;background:#05263a}
:where(input[type=checkbox], input[type=radio]):checked{
  background:linear-gradient(180deg,#a5f3fc,#22d3ee);border-color:#cffafe;box-shadow:0 0 8px rgba(34,211,238,.45)}
:where(input[type=checkbox], input[type=radio]):checked::before{transform:scale(1)}
:where(input[type=checkbox], input[type=radio]):hover:not(:disabled){border-color:#6cc4ff}
:where(input[type=checkbox], input[type=radio]):focus-visible{outline:2px solid #6cc4ff;outline-offset:2px}
:where(input[type=checkbox], input[type=radio]):disabled{opacity:.45;cursor:not-allowed}
