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

html, body {
  width: 100%; min-height: 100vh;
  background: #090909;
  color: rgba(255,255,255,0.9);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.page-wrap {
  margin-left: 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.35s cubic-bezier(0.16,1,0.3,1);
}
body.nav-open .page-wrap { margin-left: 300px; }

.side-nav {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 56px; height: 100vh;
  background: rgba(10,10,10,0.97);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
  padding: 8px 8px 20px;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
body.nav-open .side-nav { width: 300px; }

.side-nav-header {
  display: flex; align-items: center;
  height: 46px;
  padding-left: 2px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.side-nav-logo {
  display: flex; align-items: center;
  background: none; border: none; cursor: pointer;
  padding: 2px; border-radius: 8px;
  transition: background 0.15s;
  min-width: 0; flex-shrink: 0;
}
.side-nav-logo:hover { background: rgba(255,255,255,0.07); }
.side-nav-logo .logo-min  { width: 30px; height: 30px; object-fit: contain; display: block; }
.side-nav-logo .logo-full { height: 30px; max-width: 210px; object-fit: contain; display: none; }
body.nav-open .side-nav-logo .logo-min  { display: none; }
body.nav-open .side-nav-logo .logo-full { display: block; }

.nav-toggle {
  position: fixed; z-index: 1001;
  top: 10px; left: 56px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 42px; flex-shrink: 0;
  background: #16161a;
  border: 1px solid rgba(255,255,255,0.12);
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  box-shadow: 3px 0 10px rgba(0,0,0,0.35);
  transition: left 0.35s cubic-bezier(0.16,1,0.3,1), background 0.15s, color 0.15s;
}
.nav-toggle:hover { background: #1e1e23; color: #fff; }
.nav-toggle svg { width: 11px; height: 11px; }
.nav-toggle .nav-toggle-close { display: none; }
body.nav-open .nav-toggle { left: 300px; }
body.nav-open .nav-toggle .nav-toggle-open  { display: none; }
body.nav-open .nav-toggle .nav-toggle-close { display: block; }

.side-nav-top { display: flex; flex-direction: column; gap: 2px; }
.side-nav-bottom { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }

.side-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px; border-radius: 10px;
  color: rgba(255,255,255,0.9); text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.side-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.side-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-nav-item--disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.side-nav-item--active { color: #fff; background: rgba(255,255,255,0.08); }

.side-nav-item span:not(.side-nav-soon),
.side-nav-soon { opacity: 0; transition: opacity 0.2s ease; }
body.nav-open .side-nav-item span:not(.side-nav-soon),
body.nav-open .side-nav-soon { opacity: 1; }

.side-nav-soon {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(100,220,255,0.6); background: rgba(100,220,255,0.08);
  border: 1px solid rgba(100,220,255,0.2); border-radius: 6px; padding: 2px 6px;
}

.side-nav-account-group {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  position: relative;
}
.side-nav-account {
  display: flex; align-items: center; gap: 12px;
  height: 56px;
  padding: 6px 2px; border-radius: 10px;
  cursor: pointer; transition: background 0.15s;
  position: relative;
}
.side-nav-account:hover { background: rgba(255,255,255,0.08); }
.side-nav-avatar {

  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1), height 0.35s cubic-bezier(0.16,1,0.3,1);
}
.side-nav-avatar svg { width: 16px; height: 16px; transition: width 0.35s, height 0.35s; }
.side-nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

body.nav-open .side-nav-avatar { width: 44px; height: 44px; }
body.nav-open .side-nav-avatar svg { width: 24px; height: 24px; }
.side-nav-account--logged-in .side-nav-avatar { background: rgba(120,210,255,0.18); color: #bfe8ff; }
.side-nav-account-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  opacity: 0; transition: opacity 0.2s ease; white-space: nowrap;
}
body.nav-open .side-nav-account-info { opacity: 1; }
.side-nav-account-name {
  font-family: 'Space Mono', monospace; font-size: 13.5px; color: rgba(255,255,255,0.92);
  overflow: hidden; text-overflow: ellipsis;
}
.side-nav-account-sub {
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  overflow: hidden; text-overflow: ellipsis;
}
.side-nav-account-divider {
  height: 1px; margin: 2px 7px; background: rgba(255,255,255,0.07);
}

.side-nav-account-group .side-nav-item { margin: 0; padding: 11px 7px; }

.side-nav-section-gap { height: 8px; }

.side-nav-legal {
  padding: 10px 11px 0;
  opacity: 0; transition: opacity 0.2s ease;
  white-space: nowrap;
}
body.nav-open .side-nav-legal { opacity: 1; }
.side-nav-legal-links {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 0.03em;
}
.side-nav-legal-links a {
  color: rgba(255,255,255,0.34); text-decoration: none;
  transition: color 0.15s;
}
.side-nav-legal-links a:hover { color: rgba(255,255,255,0.65); }
.side-nav-legal-links span { color: rgba(255,255,255,0.2); }
.side-nav-copyright {
  margin-top: 5px;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.22);
}

.page-wrap img,
#playerMount img,
.sp-wrap img {
  -webkit-user-drag: none;
  user-drag: none;
}
