/* =========================================================
   Jekpoti — page layout
   Top bar (logo, wallet, buttons), the main column and the footer.
   ========================================================= */
/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(19,10,38,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: 'Bungee','Noto Sans Georgian',sans-serif;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  white-space: nowrap;
}
.brand em {
  font-style: normal;
  color: var(--gold);
}
.wallet {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg,#3a2470,#24154a);
  border: 1px solid #ffd16655;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}
.wallet small {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.wallet.bump {
  animation: bump .5s;
}
.wallet.drop {
  animation: drop .4s;
}
@keyframes bump {
  40% {
    transform: scale(1.15);
    box-shadow: 0 0 30px var(--gold);
  }
}
@keyframes drop {
  40% {
    transform: translateY(3px);
  }
}
.iconbtn {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.iconbtn:hover {
  background: var(--panel2);
}
.iconbtn .lbl {
  margin-left: 4px;
}
.iconbtn .lcode {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}
@media (max-width: 640px) {
  .iconbtn .lbl {
    display: none;
  }
  .topbar {
    gap: 6px;
    padding: 8px 12px;
  }
  .wallet small {
    display: none;
  }
  .wallet {
    padding: 6px 12px;
    font-size: 16px;
  }
  .iconbtn {
    padding: 7px 9px;
  }
}
/* phones and small tablets: the name next to the logo would push the buttons off the screen */
@media (max-width: 560px) {
  .brand .name {
    display: none;
  }
  .brand {
    font-size: 24px;
  }
  .topbar {
    gap: 4px;
    padding: 8px;
  }
  .iconbtn {
    padding: 6px 7px;
  }
  .topbar .wallet {
    padding: 5px 10px;
    font-size: 15px;
    flex-shrink: 1;   /* a very large balance squeezes the wallet, never pushes the buttons out */
    min-width: 0;
    overflow: hidden;
  }
}
@media (max-width: 400px) {
  .iconbtn .lcode {
    display: none;   /* the language button keeps only 🌐 */
  }
}
@media (max-width: 350px) {
  .topbar {
    gap: 3px;
    padding: 6px;
  }
  .brand {
    font-size: 20px;
  }
  .iconbtn {
    padding: 5px 5px;
    font-size: 14px;
  }
  .wallet {
    padding: 4px 8px;
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .iconbtn .lbl {
    display: none;
  }
}
.topbar > * {
  flex-shrink: 0;
}
.wallet {
  min-width: 0;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  position: relative;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--gold);
}
.ticker .track {
  display: inline-block;
  padding-left: 100%;
  animation: tick 90s linear infinite;
}
.ticker .track span {
  margin-right: 60px;
}
@keyframes tick {
  to {
    transform: translateX(-100%);
  }
}
.help {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.help a {
  color: var(--teal);
}
