/* EXOLAND V58 — Neon Racers mobile fixes only. Desktop and Star Runner untouched. */
@media (max-width:780px) {
  /* Keep the live-player count fully INSIDE the chat button, not beside it.
     The number stays legible for 1, 9, 10, and 99+ participants. */
  #racerDialog #racerChatToggle {
    position:relative;
    display:inline-flex;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    gap:0;
    padding:0;
    align-items:center;
    justify-content:center;
    isolation:isolate;
  }
  #racerDialog #racerChatToggle svg {
    display:block;
    width:23px;
    height:23px;
    min-width:23px;
    min-height:23px;
    margin:4px 5px 0 0;
    flex:0 0 auto;
  }
  #racerDialog #racerChatToggle b {
    position:absolute;
    top:2px;
    right:2px;
    left:auto;
    bottom:auto;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    min-width:18px;
    width:auto;
    max-width:30px;
    height:18px;
    min-height:18px;
    margin:0;
    padding:0 4px;
    border:1px solid #083848;
    border-radius:11px;
    background:linear-gradient(145deg,#a7ffeb,#66f6d5);
    color:#06252b;
    font:900 10px/1 'Rajdhani','Exo 2',sans-serif;
    font-variant-numeric:tabular-nums;
    letter-spacing:0;
    text-align:center;
    white-space:nowrap;
    box-shadow:0 0 0 1px rgba(61,255,211,.18),0 2px 8px rgba(0,0,0,.3);
    pointer-events:none;
  }
  /* The engine sets the canvas's intrinsic aspect to match the real viewport.
     'contain' is deliberately retained as a safe no-distortion fallback. */
  #racerDialog .neon-race-stage-wrap {
    width:100%;
    min-width:0;
    overflow:hidden;
  }
  #racerDialog #racerCanvas {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    image-rendering:auto;
    -webkit-user-select:none;
    user-select:none;
    touch-action:none;
  }
}
@media (max-width:380px) {
  #racerDialog #racerChatToggle {
    flex-basis:38px;
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
  }
  #racerDialog #racerChatToggle svg {
    width:21px;
    height:21px;
    min-width:21px;
    min-height:21px;
    margin:3px 4px 0 0;
  }
  #racerDialog #racerChatToggle b {
    top:1px;
    right:1px;
    min-width:16px;
    height:16px;
    min-height:16px;
    font-size:9px;
    padding:0 3px;
  }
}
