#unity-canvas {
  position: relative;
  z-index: 0;
}

#pointer-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  padding: 8px 12px;
  border: 1px solid #3a3a3a;
  background: rgba(17, 17, 17, 0.86);
  color: #f2f2f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

#pointer-hint[hidden] {
  display: none;
}

#unity-footer {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 0 6px 0 0;
}

#unity-logo-title-footer,
#unity-fullscreen-button,
#unity-build-title,
#wallet-overlay,
#api-overlay {
  float: none;
}

#unity-logo-title-footer {
  order: 0;
  flex: 0 0 102px;
}

#unity-build-title {
  order: 1;
  flex: 1 1 72px;
  min-width: 0;
  margin-right: 0;
  font-size: 13px;
  line-height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wallet-overlay {
  order: 2;
}

#api-overlay {
  order: 3;
}

#unity-fullscreen-button {
  order: 4;
  flex: 0 0 38px;
}

#wallet-overlay,
#api-overlay {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  position: relative;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 10000;
  pointer-events: auto;
}

#wallet-chip,
#api-chip,
#api-run-nonce,
#api-run-connect,
#wallet-panel button,
#api-panel button {
  cursor: pointer;
  border: 1px solid #3a3a3a;
  background: #111;
  color: #f2f2f2;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}

#wallet-panel,
#api-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  padding: 6px;
  background: #111;
  border: 1px solid #3a3a3a;
  z-index: 10001;
  pointer-events: auto;
}

#api-panel {
  min-width: 280px;
  max-width: 420px;
}

#api-log {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: #c8c8c8;
  font-size: 11px;
  line-height: 1.35;
}

#wallet-panel[hidden],
#api-panel[hidden] {
  display: none;
}

.unity-mobile #wallet-overlay,
.unity-mobile #api-overlay {
  display: flex;
}

#wallet-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto;
}

#wallet-signin-modal[hidden] {
  display: none;
}

#wallet-signin-card {
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  background: #111;
  border: 1px solid #3a3a3a;
  color: #f2f2f2;
}

#wallet-signin-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

#wallet-signin-status {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #c8c8c8;
}

#wallet-signin-card button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  cursor: pointer;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 12px;
}

#wallet-signin-phantom,
#wallet-signin-solflare {
  background: #f2f2f2;
  color: #111;
  border-color: #f2f2f2;
}

#wallet-signin-cancel {
  margin-top: 8px;
  margin-bottom: 0;
}
