#cosmic-clash-3d-wrap,
#cosmic-clash-3d-wrap * {
  box-sizing: border-box;
}

#cosmic-clash-3d-wrap {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #edf4ff;
  background: radial-gradient(circle at 16% 25%, rgba(145, 85, 255, 0.34), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(0, 220, 255, 0.2), transparent 16%),
    radial-gradient(circle at 50% 68%, rgba(255, 80, 200, 0.1), transparent 26%),
    #01030b;
  border-radius: 22px;
}

#cosmic-clash-3d-wrap canvas {
  display: block;
  width: 100%;
  height: 760px;
}

#cosmic-clash-3d-wrap .cc3d-ui {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 25;
  width: min(390px, calc(100% - 32px));
  padding: 14px 14px 12px;
  border: 1px solid rgba(131, 164, 255, 0.35);
  border-radius: 18px;
  background: rgba(8, 14, 32, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

#cosmic-clash-3d-wrap .cc3d-ui h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: #edf4ff;
}

#cosmic-clash-3d-wrap .cc3d-sub {
  margin: 0 0 12px;
  color: #c4dcff;
  font-size: 14px;
  line-height: 1.4;
}

#cosmic-clash-3d-wrap .cc3d-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

#cosmic-clash-3d-wrap .cc3d-card {
  border: 1px solid rgba(131, 164, 255, 0.35);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

#cosmic-clash-3d-wrap .cc3d-label {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9dcfff;
}

#cosmic-clash-3d-wrap .cc3d-value {
  font-size: 22px;
  font-weight: 800;
  color: #edf4ff;
}

#cosmic-clash-3d-wrap .cc3d-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

#cosmic-clash-3d-wrap .cc3d-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: #07111a;
  background: linear-gradient(135deg, #67d5ff, #d6f5ff);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

#cosmic-clash-3d-wrap .cc3d-btn.secondary {
  color: #edf4ff;
  background: linear-gradient(135deg, #5230ac, #2f6cd4);
}

#cosmic-clash-3d-wrap .cc3d-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#cosmic-clash-3d-wrap .cc3d-notes {
  min-height: 40px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.45;
  color: #cbe6ff;
}

#cosmic-clash-3d-wrap .cc3d-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 25;
  transform: translateX(-50%);
  max-width: min(90%, 700px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 13, 26, 0.82);
  color: #edf4ff;
  font-size: 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

#cosmic-clash-3d-wrap .cc3d-vr {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 30;
}

#cosmic-clash-3d-wrap .cc3d-vr button,
#cosmic-clash-3d-wrap .cc3d-vr a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(131, 164, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 14, 32, 0.78);
  color: #edf4ff;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 700px) {
  #cosmic-clash-3d-wrap {
    min-height: 680px;
  }

  #cosmic-clash-3d-wrap canvas {
    height: 680px;
  }

  #cosmic-clash-3d-wrap .cc3d-ui {
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    padding: 12px;
  }

  #cosmic-clash-3d-wrap .cc3d-stats {
    grid-template-columns: 1fr;
  }

  #cosmic-clash-3d-wrap .cc3d-controls {
    grid-template-columns: 1fr;
  }

  #cosmic-clash-3d-wrap .cc3d-ui h2 {
    font-size: 20px;
  }

  #cosmic-clash-3d-wrap .cc3d-vr {
    right: 10px;
    top: auto;
    bottom: 80px;
  }
}