body {
  background: #000;
  color: #e0e6ed;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
  min-height: 100vh;
}
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}
header {
  text-align: center;
  padding: 3rem 0 1.5rem 0;
}
#title {
  color: #1fb6ff;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
main#main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
#connect-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
#server-address {
  width: 48vw;
  min-width: 400px;
  max-width: 900px;
  padding: 1.2rem 2rem;
  font-size: 2.2rem;
  border: 2px solid #1fb6ff;
  border-radius: 0.7rem;
  background: #0a1f44;
  color: #fff;
  outline: none;
  transition: box-shadow 0.2s;
}
#server-address:focus, #server-address.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
  border-color: #1fb6ff;
}
#protocol-select {
  font-size: 2.2rem;
  padding: 1.2rem 1.5rem;
  border: 2px solid #1fb6ff;
  border-radius: 0.7rem;
  background: #0a1f44;
  color: #fff;
  margin-bottom: 1.2rem;
  margin-right: 1.2rem;
  outline: none;
  transition: box-shadow 0.2s;
}
#protocol-select:focus, #protocol-select.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
  border-color: #1fb6ff;
}
#protocol-toggle {
  display: inline-block;
  font-size: 2.2rem;
  padding: 1.2rem 2.5rem;
  border: 2px solid #1fb6ff;
  border-radius: 0.7rem;
  background: #0a1f44;
  color: #fff;
  margin-bottom: 1.2rem;
  margin-right: 1.2rem;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-align: center;
}
#protocol-toggle:focus, #protocol-toggle.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
  border-color: #1fb6ff;
}
#connect-btn {
  background: linear-gradient(90deg, #1fb6ff 0%, #0a1f44 100%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
  border: none;
  border-radius: 0.7rem;
  padding: 1.2rem 4rem;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 12px #0a1f4422;
  transition: box-shadow 0.2s, border 0.2s;
}
#connect-btn:focus, #connect-btn.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
  border: 2px solid #1fb6ff;
}
#instructions {
  color: #1fb6ff;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
#readme-container {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  font-size: 1.5rem;
}
#debug-log {
  color: #ff4444;
  font-size: 1.1rem;
  margin-top: 1rem;
  min-height: 1.5em;
}
#modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 31, 68, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#modal-overlay.hidden {
  display: none;
}
#modal-content {
  background: #0a1f44;
  color: #fff;
  border-radius: 1.2rem;
  padding: 3rem 3.5rem 2.5rem 3.5rem;
  min-width: 420px;
  max-width: 90vw;
  box-shadow: 0 0 32px #1fb6ff55;
  position: relative;
  text-align: left;
}
#modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #1fb6ff;
  color: #0a1f44;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.3rem;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  outline: none;
}
#modal-close:focus, #modal-close.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
}
#disclaimer-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#disclaimer-popup.hidden {
  display: none;
}
.popup-content {
  background: #0a1f44;
  color: #fff;
  border-radius: 1.2rem;
  padding: 2.5rem 3rem;
  min-width: 400px;
  max-width: 90vw;
  box-shadow: 0 0 32px #1fb6ff55;
  text-align: center;
}
#disclaimer-ok {
  margin-top: 2rem;
  background: #1fb6ff;
  color: #0a1f44;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  padding: 1rem 3rem;
  cursor: pointer;
  outline: none;
}
#disclaimer-ok:focus, #disclaimer-ok.focused {
  box-shadow: 0 0 0 4px #1fb6ff99;
}
@media (max-width: 900px) {
  #server-address, #modal-content, .popup-content {
    min-width: 80vw;
    font-size: 1.5rem;
  }
  #title {
    font-size: 2.2rem;
  }
} 