@import url('https://fonts.googleapis.com/css?family=Russo+One');

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  font-family: 'Russo One', sans-serif;
  user-select: none;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
}

.loading-init {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  z-index: 1000;
  transition: opacity 0.5s;
}

.loading-init__header {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #fff;
}

.loading-init__status {
  font-size: 1.2em;
  color: #888;
}

.stage-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  backdrop-filter: blur(5px);
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.btn svg {
  pointer-events: none;
}

.menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu.open {
  opacity: 1;
  pointer-events: auto;
}

.menu.hide {
  display: none;
}

.menu__inner-wrap {
  width: 90%;
  max-width: 500px;
  background-color: #111;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
}

.menu__header {
  font-size: 2em;
  margin-bottom: 10px;
  color: #fff;
}

.menu__subheader {
  font-size: 1em;
  margin-bottom: 30px;
  color: #888;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-option label {
  font-size: 1.1em;
  color: #ccc;
}

select {
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
  outline: none;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.credits {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

.credits a {
  color: #888;
  text-decoration: none;
}

.credits a:hover {
  color: #fff;
}

/* Text Launch UI */
.text-launch-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  padding: 6px 6px 6px 20px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: nowrap;
}

.text-launch-container:hover {
  background: rgba(20, 20, 20, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%) translateY(-2px);
}

.text-launch-input {
  background: transparent;
  border: none;
  padding: 8px 0;
  color: #fff;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
  width: 200px;
  outline: none;
  letter-spacing: 0.5px;
  font-weight: 300;
}

.text-launch-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s;
}

.text-launch-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.1);
}

.text-launch-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 24px;
  border-radius: 100px;
  cursor: pointer;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-launch-btn:hover:not(:disabled) {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-launch-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.text-launch-btn:disabled {
  background: transparent;
  color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .text-launch-container {
    width: auto;
    max-width: 90%;
    bottom: 30px;
    padding: 6px 6px 6px 16px;
  }
  
  .text-launch-input {
    width: auto;
    flex: 1;
    min-width: 50px;
    font-size: 14px;
  }
  
  .text-launch-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}
