#error-badge,
#success-badge {
  left: 4px !important;
}

/* Make dreamcatcher relative for chat positioning */
#dreamcatcher {
  position: relative;
}

/* Transparent chat overlay for player mode */
#chatwrap {
  position: absolute;
  bottom: 4px;
  left: 25%;
  width: 50%;
  height: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  cursor: pointer;
}

/* Collapsed state */
#chatwrap.collapsed {
  height: 38px;
  cursor: pointer;
}

#chatwrap.collapsed #chatframe {
  display: none;
}

#chatwrap.collapsed .input-group {
  display: none;
}

/* Chat status indicator for collapsed state */
#chat-status {
  display: none;
  padding: 8px 15px;
  text-align: center;
  color: white;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  font-size: 14px;
}

#chatwrap.collapsed #chat-status {
  display: block;
}

#chatframe {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#chatframe::-webkit-scrollbar {
  width: 6px;
}

#chatframe::-webkit-scrollbar-track {
  background: transparent;
}

#chatframe::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#chatwrap .input-group {
  margin: 0;
  padding: 0px;
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatwrap .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

#chatwrap .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#chatwrap .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#chatwrap .btn {
  background-color: rgba(40, 167, 69, 0.8);
  border-color: rgba(40, 167, 69, 0.8);
  margin: 0;
  border: 0;
}

#chatwrap .btn:hover {
  background-color: rgba(40, 167, 69, 1);
  border-color: rgba(40, 167, 69, 1);
}

@media screen and (orientation: portrait) {
  #wrapper,
  #dreamcatcher,
  #theframe,
  #splash,
  #spinner,
  #nagger,
  #nagger-screener,
  #skeleton-loader {
    width: 177.083333334vw;
    height: 100vw;
  }
  .container-fluid {
    width: 100vw;
  }
  body {
    transform: rotate(90deg);
    margin-left: auto;
    margin-right: auto;
    overflow-y: hidden;
    background-color: black;
  }
}
@media screen and (orientation: landscape) {
  #wrapper,
  #dreamcatcher,
  #theframe,
  #splash,
  #spinner,
  #nagger,
  #nagger-screener,
  #skeleton-loader {
    width: 177.083333334vh;
    height: 100vh;
  }
  .container-fluid {
    width: 100vw;
  }
  body {
    overflow-y: hidden;
    background-color: black;
  }
}
