:root {
  --green: #43a952;
  --green-dark: #286230;
  --blue: #246aec;
  --blue-dark: #1150c5;
  --gold: #ffc826;
  --gray: #f1f5f9;
  --black: #1e293b;
  --red: #ef4444;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Inter, Roboto, system-ui, -apple-system, sans-serif;
  background: #111827;
  user-select: none;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
  transform: translateZ(0);
}

#overlays {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.52) 0%, rgba(2, 6, 23, 0.84) 100%);
  z-index: 10;
  pointer-events: none;
}

#main-ui-container {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  pointer-events: none;
}

#main-ui-container > * {
  pointer-events: auto;
}

.hide, .line--hidden {
  display: none !important;
}

.chatblock {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  border-radius: 10px;
}

.chatblock--opacity {
  opacity: 0.45;
}

.chatblock__button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatblock__channel-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  height: 28px;
  padding: 0 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  background: #1e293b;
  white-space: nowrap;
}

.chatblock__channel-btn.ch-global {
  background: #1d4ed8;
  border-color: #60a5fa;
}

.chatblock__channel-btn.ch-tag {
  background: #15803d;
  border-color: #4ade80;
}

.chatblock__channel-btn.ch-clan {
  background: #6d28d9;
  border-color: #c084fc;
}

.chatblock__textarea {
  width: 300px;
  max-width: calc(100vw - 150px);
  height: 30px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  user-select: text;
}

.chatblock__textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.chatblock__scrollbar {
  display: none;
  position: absolute;
  left: 8px;
  bottom: 48px;
  width: 8px;
  height: 170px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chatblock__scrollbar--active {
  display: block;
}

.chatblock__scrollbar-thumb {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 8px;
  height: 36px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  cursor: pointer;
}

#mobileStuff {
  position: fixed;
  inset: 0;
  z-index: 14;
  pointer-events: none;
}

#splitBtn, #ejectBtn {
  position: fixed;
  right: 22px;
  width: 72px;
  height: 72px;
  pointer-events: auto;
  cursor: pointer;
}

#splitBtn { bottom: 110px; }
#ejectBtn { bottom: 24px; }

#touchCircle {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

#menu-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
}

#menu-links {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 14px;
  border-radius: 0 0 0 12px;
  font-size: 13px;
  color: #475569;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

#menu-links .link, #menu-links .link_btn {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
}
