html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #000;
}

#unity-container,
#unity-container.unity-desktop,
#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
}

#unity-canvas,
.unity-mobile #unity-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width: min(320px, 84vw);
  text-align: center;
}

#unity-logo {
  width: 154px;
  height: 130px;
  margin: 0 auto;
  background: url('unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty {
  position: relative;
  width: min(280px, 78vw);
  height: 14px;
  margin: 18px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(245, 252, 255, 0.92);
  box-sizing: border-box;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  margin: 0;
  background: linear-gradient(90deg, #ffffff, #e5f8ff);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.36);
}

#telepathy-loading-copy {
  width: min(300px, 82vw);
  margin: 18px auto 0;
  color: rgba(237, 249, 255, 0.86);
  font: 700 13px/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 174, 255, 0.45);
}

#unity-footer,
.unity-mobile #unity-footer {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  z-index: 10000;
  width: 72px;
  height: 72px;
  display: block;
  pointer-events: none;
}

#unity-logo-title-footer,
#unity-build-title {
  display: none;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: none;
  display: block;
  width: 62px;
  height: 62px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.44);
  background-image: url('fullscreen-button.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.unity-mobile #unity-footer {
  right: max(4px, env(safe-area-inset-right));
  top: max(4px, env(safe-area-inset-top));
  width: 36px;
  height: 36px;
}

.unity-mobile #unity-fullscreen-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: rgba(226, 226, 226, 0.86);
  background: rgba(0, 0, 0, 0.28);
  background-image: none;
  position: relative;
  opacity: 0.82;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.unity-mobile #unity-fullscreen-button::before,
.unity-mobile #unity-fullscreen-button::after {
  content: '';
  position: absolute;
}

.unity-mobile #unity-fullscreen-button::before {
  inset: 9px;
  background:
    linear-gradient(currentColor, currentColor) left top / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 7px no-repeat;
}

.unity-mobile #unity-fullscreen-button::after {
  display: none;
}

body.unity-fullscreen-active .unity-mobile #unity-fullscreen-button::before,
#unity-container:fullscreen #unity-fullscreen-button::before,
#unity-container:-webkit-full-screen #unity-fullscreen-button::before {
  left: 8px;
  top: 13px;
  width: 10px;
  height: 10px;
  inset: auto;
  border: 2px solid currentColor;
  border-radius: 1px;
  background: transparent;
}

body.unity-fullscreen-active .unity-mobile #unity-fullscreen-button::after,
#unity-container:fullscreen #unity-fullscreen-button::after,
#unity-container:-webkit-full-screen #unity-fullscreen-button::after {
  display: block;
  left: 14px;
  top: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 1px;
}

.unity-mobile #unity-fullscreen-button:active {
  color: rgba(230, 230, 230, 0.95);
  background: rgba(0, 0, 0, 0.42);
  opacity: 0.96;
}

body.unity-fullscreen-active #unity-footer,
#unity-container:fullscreen #unity-footer,
#unity-container:-webkit-full-screen #unity-footer {
  display: block !important;
}

.telepathy-beta-signup {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.72);
  color: #edf9ff;
  font-family: Arial, Helvetica, sans-serif;
}

.telepathy-beta-signup--visible {
  display: flex;
}

.telepathy-beta-signup__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(126, 222, 255, 0.58);
  border-radius: 8px;
  background: rgba(4, 12, 18, 0.96);
  box-shadow: 0 0 28px rgba(0, 174, 255, 0.28);
}

.telepathy-beta-signup__close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  color: #edf9ff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
  line-height: 1;
}

.telepathy-beta-signup__kicker {
  margin: 0 40px 8px 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #7ee6ff;
}

.telepathy-beta-signup h2 {
  margin: 0 40px 8px 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.telepathy-beta-signup__reward,
.telepathy-beta-signup__fine,
.telepathy-beta-signup__status {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(237, 249, 255, 0.82);
}

.telepathy-beta-signup__discord {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 14px 0 16px;
  border-radius: 6px;
  color: #00131a;
  background: #7ee6ff;
  font: 700 15px Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}

.telepathy-beta-signup label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  line-height: 1.2;
  color: #b9f0ff;
}

.telepathy-beta-signup input[type=email],
.telepathy-beta-signup textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(126, 222, 255, 0.52);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 16px Arial, Helvetica, sans-serif;
}

.telepathy-beta-signup input[type=email] {
  height: 44px;
  padding: 0 12px;
}

.telepathy-beta-signup textarea {
  min-height: 128px;
  padding: 10px 12px;
  resize: vertical;
}

#telepathy-beta-company {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.telepathy-beta-signup__check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px !important;
  color: rgba(237, 249, 255, 0.86) !important;
}

.telepathy-beta-signup__check input {
  margin-top: 2px;
}

.telepathy-beta-signup__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.telepathy-beta-signup__primary,
.telepathy-beta-signup__secondary {
  min-height: 44px;
  flex: 1;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  font: 700 15px Arial, Helvetica, sans-serif;
}

.telepathy-beta-signup__primary {
  color: #00131a;
  background: #7ee6ff;
}

.telepathy-beta-signup__primary:disabled {
  opacity: 0.55;
}

.telepathy-beta-signup__secondary {
  color: #edf9ff;
  background: rgba(255, 255, 255, 0.12);
}

.telepathy-beta-signup__status--error {
  color: #ff9b8f;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}
