* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0C88EF;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;               /* modern browsers */
  min-height: -webkit-fill-available; /* iOS real pixels */

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: env(safe-area-inset-top);
}
canvas {
    display: block;
}
#leaderboard-modal {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}
#leaderboard-modal.active {
    pointer-events: all;
}
.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: .3s;
}
.lb-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 85%;
    background: linear-gradient(#0B4FA3, #08366F);
    border-radius: 18px 18px 0 0;
    padding: 18px;
    transition: .35s cubic-bezier(.2, .9, .2, 1);
    color: #fff;
    overflow-y: auto;
}
#leaderboard-modal.active .lb-backdrop {
    opacity: 1;
}
#leaderboard-modal.active .lb-panel {
    bottom: 0;
}
.lb-header {
    font: 700 22px Manrope;
    text-align: center;
    position: sticky;
    top: 0;
    padding-bottom: 12px;
}
#lb-close {
    position: absolute;
    right: 12px;
    top: 0;
    font-size: 22px;
    cursor: pointer;
}
.lb-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px 60px 60px;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lb-row span {
    font: 500 14px Manrope;
}
.lb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: Manrope;
    color: #EAF3FF;
}
.lb-table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .12em;
    color: #9EC3FF;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.lb-table td {
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}
.lb-table tr:nth-child(1) td {
    color: #FFD85E;
    font-weight: 700;
}
.lb-table tr.selected td {
    color: #33873F;
    font-weight: 700;
}
.flag {
    margin-right: 8px;
}

/* Mobile devices only */
@media (hover: none) and (pointer: coarse) {
  /* Mobile-specific styles here */

  body {
    background: #025CB4;
  }

  .lb-panel {
    border-radius: 22px 22px 0 0;
  }
}


/* background: #025CB4; */