@font-face {
  font-family: "Helios Condensed";
  src: url("../fonts/Helios_Condensed-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "Helios Condensed", sans-serif;
  color-scheme: dark;
}

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

body {
  background: #090b10;
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:after {
  background-image: url(https://files.facepunch.com/garry/1b1011b1/test.png?1=);
  content: " ";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 500;
  pointer-events: none;
  opacity: .6;
}

.wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  padding-top: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  border-radius: 6px;
  background: rgba(10, 12, 20, 0.9);
  padding: 0 8px;
  min-height: 36px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.header {
  width: 100%;
  background: rgba(10, 12, 20, 0.9);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 8px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 36px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: white;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: stretch;
}

.nav-link {
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  border-radius: 0px;
  text-decoration: none;

  color: #cfcfcf;

  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(
    180deg,
    rgba(80, 150, 255, 0) 0%,
    rgba(80, 150, 255, 0.12) 60%,
    rgba(20, 43, 120, 0.45) 100%
  );

  color: #fff;
  border-color: rgba(80, 127, 255, 0.5);
}

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;

  background: rgba(10, 12, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 6px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;

  z-index: 999;
}

.profile-menu:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-item {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  color: #e6e8ff;
  transition: background 0.12s ease, color 0.12s ease;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.profile-dropdown-item.danger {
  color: #ff6b6b;
}

.profile-dropdown-item.danger:hover {
  background: rgba(255, 80, 80, 0.15);
  color: #fff;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: radial-gradient(circle at 30% 0, #ffd66b, #ff7b3a);
  color: #201508;
}

.avatar img {
  border-radius: 100%;
  width: 100%;
  height: 100%;
}

.profile-name {
  font-size: 14px;
}

.profile-balance {
  font-size: 12px;
  color: #9ca3c4;
}

.login-button {
  display: inline-block;
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d3d7ff;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.login-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.login-button:active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f46e5, #5546e2ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6366f1, #8b9ffaff);
}

.footer{
  width:100%;
  margin-top:40px;
  background:rgba(15,17,22,.85);
  border-top:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(8px);
}

.footer__container{
  max-width:1200px;
  margin:0 auto;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.footer__left{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:13px;
  line-height:1.4;
  color:rgba(255,255,255,.7);
}

.footer__divider{
  opacity:.4;
}

.footer__right{
  display:flex;
  gap:18px;
}

.footer__link{
  font-size:13px;
  color:rgba(255,255,255,.75);
  text-decoration:none;
  transition:color .15s ease;
}

.footer__link:hover{
  color:#fff;
}

@media (max-width: 600px) {
  .logo { display: none; }
  
  .main-nav {
    justify-content: flex-start;
  }

  .footer__container{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .footer__right{
    gap:12px;
  }
}