    body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }
    #userinfo .user-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #userinfo .menu-container {
      position: relative;
    }
    .hidden{ display: none;   }
    #viewport { width: 100vw; height: 100vh; overflow: hidden; background: #111 url('/backgroundicons.png') repeat; position: relative; }
    #canvas { image-rendering: pixelated; transform-origin: 0 0; background:#fff; display:block; z-index: 1; /* canvas fica embaixo */ }
    #userinfo { font-family: "Press Start 2P", system-ui; position: absolute; bottom: 10px; left: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 6px 10px; border-radius: 8px; font-size: 14px; z-index: 9999; pointer-events: auto;  }
    #menubur { position: absolute; top: 10px; right: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 6px 10px; border-radius: 8px; font-size: 14px; z-index: 9999; pointer-events: auto;  }
    #menubur ul { list-style:none; margin:10px; padding:0; 
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    #infomap { font-family: "Press Start 2P", system-ui; position: absolute; height: 400px; top: 30%; right: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 6px 10px; border-radius: 8px; font-size: 12px; max-width: 300px; display: none; z-index: 9999; pointer-events: auto;  }
    #logo { position: absolute; font-family: "Press Start 2P", system-ui; top: 10px; left: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: bold; z-index: 9999; pointer-events: auto;  }
    #logo img{ height:41px;}
    #overlay { position: absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; background: rgba(0, 0, 0, .5); display:none;   }
    
    /* Logo responsivo - menor em mobile e resoluções baixas */
    @media (max-width: 768px) {
      #logo {
        font-size: 10px;
        padding: 4px 8px;
        top: 5px;
        left: 5px;
      }
      #logo img{
        height:30px;
      }
    }
    
    @media (max-width: 480px) {
      #logo {
        font-size: 8px;
        padding: 3px 6px;
      }
      #logo img{
        height:25px;
      }
    }
    #hud {     position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px; z-index: 9999; pointer-events: auto; text-align: center; }
    
    #loadingmap {       
            position: fixed; /* usa fixed para ficar visível mesmo com scroll */
            bottom: 20px; /* distância da parte inferior da tela */
            left: 50%; /* ponto de referência no centro da tela */
            transform: translateX(-50%); /* centraliza perfeitamente */
            color: #fff;
            background: rgba(0, 0, 0, .5);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 9999; /* garante que fique acima de outros elementos */ 
          }
    #loading { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:#222; color:#fff; padding:12px 20px; border-radius:8px; font-size:16px; display:none; }
    #controls { display:flex; gap:8px; z-index: 9999; pointer-events: auto;}
    .swal2-actions button,
    .button {
        color: #fff;
        background-color: #2e2e2e;
        padding: 5px 20px 5px 20px;
        text-decoration: none;
        margin: 10px;
        font-size: 14px;
        font-family: "Press Start 2P", system-ui;
        border: 0;
        box-shadow: 0px 5px black, 0px -5px black, 5px 0px black, -5px 0px black, 0px 10px #00000038, 5px 5px #00000038, -5px 5px #00000038, inset 0px 5px #ffffff36 ;
        cursor: pointer;
    }
    .swal2-actions button:active,
    .button:hover,.button:active {
        transform: translateY(5px);
        box-shadow: 0px 5px black, 0px -5px black, 5px 0px black, -5px 0px black,inset 0px 5px #00000038;
    }

    .buttonred{
      background-color: #d33;
    }

    .fontstyle{
      font-family: "Press Start 2P", system-ui;
    }
    .swal2-title {
      font-family: "Press Start 2P", system-ui;
      font-size: 16px;
    }
    .swal2-html-container {
      font-family: "Press Start 2P", system-ui;
      font-size: 11px;
    }

    input.swal2-input {
      font-family: "Press Start 2P", system-ui;
      font-size: 11px;
    }
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
    align-items: stretch;
    overflow-y: scroll;
    height: -webkit-fill-available;
    margin-bottom: 60px;

        /* Scrollbar styling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(123, 139, 209, 0.5) transparent; /* Firefox */
  }
  
  /* Webkit browsers (Chrome, Safari, Edge) */
  .bp-grid::-webkit-scrollbar {
      width: 6px;
  }

  .bp-grid::-webkit-scrollbar-track {
      background: transparent;
  }

  .bp-grid::-webkit-scrollbar-thumb {
      background: rgba(123, 139, 209, 0.5);
      border-radius: 3px;
  }

  .bp-grid::-webkit-scrollbar-thumb:hover {
      background: rgba(123, 139, 209, 0.8);
  }

  .bp-card {
    background: #0f1220;
    color: #e8eefc;
    border: 1px solid #2a3154;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .bp-label {
    display: block;
    font-size: 12px;
    color: #9fb0ff;
    margin-bottom: 6px;
    letter-spacing: .2px;
  }
  .bp-value {
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
  }
  .bp-sep {
    grid-column: 1 / -1;
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #7b8bd1;
  }

.user-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.username{
    font-size: 12px;
    padding: 12px;
    display: block;
}
.menubtn{
  width: 14px;
}

.menu-container {
  position: relative;
  text-align: end;
}
.menu-container #menu-options {
  z-index: 100;
  min-width: 160px;
}
.wallet span {
  display: block;
  font-size: 12px;
}
.extra-wallets div {
  display: block;
  font-size: 12px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.cursor-pointer {
  cursor: pointer;
}


.input-field {
  font-family: "Press Start 2P", system-ui;
  width: 100px;
  height: 30px;
  font-size: large;
  border: none;
  text-align: center;
}